Message from JavaScript discussions

December 2020

— Git cherry pick 😮


Can we use extra space or do we have to do it in constant space?
Becaue if we are allowed to have extra space, we can make a hash map for the frequency of elements and then remove the ones with frequency ==1?
If not please do let us know the right approach.

— Those are numbers and no strings, there are no extra spaces??

— It means to duplicate the diff of a specific commit into your current branch

— By space I mean space complexity.

— Ah, thought already xd

— I'd have done it with reduce not gonna lie, else there are sets, filter/map, casual for loops, ...

— Not aware of the concepts that you mentioned but I thought of the solution in python.

— Those things exist also in python tho

— But you're in a js group tho, how come u ask a python question here 🤔

— Map,filters and reduce do I don't prefer them because it reduces the readibility of the code

— U just gotta learn to read em