News for hackers. Stuff that matters.
Re:How necessary are the programming fundamentals? by sireat on Thursday May 20, 2021 @03:17PM (#27225746)
Question is if you allow using prebuilt Map type data structures.

Then it is easy just bucket count with keys being integers in the list and iterate afterwards filtering for value >= 2

Now if no Maps are allowed it is a bit trickier... you might need your own hashing function or as someone else suggested write your own nlogn sort..

There are no comments on this comment yet.