Why Nostr? What is Njump?
2024-05-07 15:11:18
in reply to

mrdot on Nostr: The answer by the way was very simple: sort by descending density and loop over each ...

The answer by the way was very simple: sort by descending density and loop over each item. Try to add id to the subset and if the average amount of B remains above X keep it added. If it isn’t, skip it and try with the next item until you went through all of them
Author Public Key
npub1fv87668hlpm85p2dmzl40lk3l6mkh8nyt2tk7pngmjtulhyp4xequv2t36