Given two arrays A and B, how do I answer queries asking the qth minimum sum of A[i]+B[j]?

I am given two arrays A and B of same size K (K<=20000). There can be upto 500 queries (offline), each asking the qth minimum sum a+b such that a belongs to A and b belongs to B (q<=10000). How do I answer these queries efficiently?
One way would be to iterate over all pairs but that is too slow for me.

[ Politics ] Open Question : Why did Trump lash out at a reporter just for asking a question?

What an unhinged, angry sociopath. He was unable to answer the damn question, so he resorted to personal insults. I am ******* tired of him and his delusional white trash supporters. He denies the reported number of coronavirus deaths. He’s delusional. “I’ve always been right.” I mean, seriously? He’s dangerously narcissistic and ruthless.

Asking a security audit report from a company [closed]

A company’s asked me to submit a scan of my passport claiming KYC (Know Your Customer) and AML (Anti-money Laundering) purposes. In times of daily data breaches, would it be genuinely fair to ask such a company to be a little more transparent as to how they protect their clients’ PII (personally identifiable information), for example, by showing—in the form of a periodically-renewed certificate, score sheet, report or conclusion made by an independent company—some evidence of a thoroughly checked infrastructure?

How do I make this saves macro for Roll20 work while only asking for the type once?

I’m trying to create a saves macro for DnD 5e in Roll20 that asks for the type of save once and then specifies which save type it is.

For example expected output may be “Lucy rolls a [19]/[10] for a strength save!” where [] means it’s a formatted dice roll with modifiers. I have a working macro but the issue is I have to prompt for the save type twice. Once for the type so it can pull the modifier and once for specifying the save in chat.

My current working code is as follows:

@{selected|token_name} rolls a [[1d20+?{Save|STR, @{selected|strength_save_bonus}|DEX, @{selected|dexterity_save_bonus}|CON, @{selected|constitution_save_bonus}|INT, @{selected|intelligence_save_bonus}|WIS, @{selected|wisdom_save_bonus}|CHA, @{selected|charisma_save_bonus}}]]/[[1d20+?{Save|STR, @{selected|strength_save_bonus}|DEX, @{selected|dexterity_save_bonus}|CON, @{selected|constitution_save_bonus}|INT, @{selected|intelligence_save_bonus}|WIS, @{selected|wisdom_save_bonus}|CHA, @{selected|charisma_save_bonus}}]] for ?{Save_type|STR, a strength|DEX, a dexterity|CON, a constitution|INT, an intelligence|WIS, a wisdom|CHA, a charisma} save!

I can’t reuse Save as the second prompt because it just gives the stat mod (“Lucy rolls a [19]/10] for a 5 save!” where 5 is my STR save mod.)

What are the downsides of asking your current users to participate in a study (e.g. for new functionality)?

What I mean is, you rarely see companies put some form of banner out there on their homepage saying:

“Hey, we’re developing some new stuff and would like our customer’s opinions on it. Take a quick test!”

Usually, they do those tests behind closed veils and with specifically filtered testers (e.g. in remote testing).

So my question is, what is the primary reason for that?

These thoughts come to mind as arguments against it:

  • Only specific users would participate and skew the perspective. The average user, who is the main buyer, will ignore it; while the power or frequent users will use the chance to complain or inject their very specific wishes.
  • Your users are also accustomed to the site by now and will most probably view any new design changes as “bad” and will vote for keeping what they already know.

On the other hand, these are the things that could be said in favor of it:

  • You can get insight into problems that only long-term users might face, while new users do not even know they exist.
  • You build more loyalty due to the trust you display for their opinion.

I guess I kind of answered my own question, as it usually depends on context. You use foreign, new users to test things that are supposed to attract new paying customers, while you can ask existing users when you want to improve deeper & more complex functionality.

But it seems you never see the second case, but most always the first one.

Does anyone have further points to add to the two lists or other thoughts related to that?

Are there any standardized questionnaires available for asking adults about their opinion on the suitability of a system designed for children?

My team and I have developed an augmented reality app for children (primary school students).

I would like to get their teachers’ opinions about the usability of the system in the context of their students.

First, I thought about using standardized questionnaires like System Usability Scale or User Experience Questionnaire but those are designed for asking the actual user of a system and furthermore, I actually don’t want too much focus on the usability rather than on their opinion about the suitability of the system for children.

I am wondering if there are any standardized questionnaires available for cases like that.

Adding a “Delete Row” Button to Infopath form on SharePoint Online asking for Admin Approval

Been looking for a solution to add a “delete row button” for each row on a repeated table form. Migrated over to SharePoint Online but since InfoPath is being depreciated by 2026 some of the InfoPath toggles that was in Central Admin (as is Central Admin) is gone from SP Online.

I get this error Error when publishing from InfoPart when I tried to publish a form where I used the edit code button (for a button element) and added this code:


It works perfectly sand-boxed but since sand-boxed solutions have also been depreciated I suppose I am getting this error. Is there a way around this or another solution to make a ‘Delete Row” button in a Repeated Table Form? Yes I have Farm/Admin rights. SP Online, InfoPath 2013.

Why apt asking to uninstall GIMP when installing ardour?

When running Ubuntu 19.04, I’m trying to install ardour, but apt is requesting to uninstall GIMP:

$   sudo apt install ardour Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   gimp-data libamd2 libass9 libbabl-0.1-0 libbs2b0 libcamd2 libccolamd2 libcholmod3 libde265-0 libflite1 libgegl-common libheif1 libmetis5 libmng2 libmypaint-1.3-0 libmypaint-common libmysofa0 libnorm1   libpgm-5.2-0 libraw19 libumfpack5 libvidstab1.1 libzmq5 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   ardour-data Suggested packages:   jamin Recommended packages:   ardour-video-timeline The following packages will be REMOVED   gimp gstreamer1.0-libav libavfilter7 libgegl-0.4-0 libgimp2.0 libpostproc55 libswscale5 The following NEW packages will be installed   ardour ardour-data 0 to upgrade, 2 to newly install, 7 to remove and 1 not to upgrade. Need to get 9,885 kB of archives. After this operation, 20.9 MB of additional disk space will be used. Do you want to continue? [Y/n] n 

Why is apt trying to get me to uninstall GIMP (amongst other things) when trying to install ardour?