sush
BAN USER
Questions (2)
Comments (4)
Reputation 40
- 0of 0 votes
AnswersGiven a set of numbers, find those numbers that occur odd number of times. I used the hash table approach where I insert the count (no. of times occurred as of now) of the current number whose hash I am making. Time complexity: O(n). Space complexity: O(n).
- sush in United States| Report Duplicate | Flag | PURGE
Amazon Intern
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
For instance, if you have an array of numbers a[] = {10,2,2,5,6,6}. You would want to remove the duplicates and get an output array as {10,2,5,6}.
- sush March 02, 2015