floaterions
BAN USER
Comments (4)
Reputation 5
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Agreed. People copy-paste their 50-line code and expect everybody to read through it and leave their opinions about it.
- floaterions December 12, 2012Comment hidden because of low score. Click to expand.
-1
of 1 vote
Well done !
- floaterions December 11, 2012Comment hidden because of low score. Click to expand.
1
of 1 vote
We have 2^32 integers, and in order to keep the frequencies, we need to have an int array. Therefore, memory requirement of your solution is:
32 * (2^32) bits = 2^37 bits = 16 GB
True, this is O(1), but I'm not quite sure the interviewer is looking for something this big.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
agreed.
- floaterions December 12, 2012