an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Data Structures Interview Questions

What is linked hash set?

0 Answers  


Why is hashset used?

0 Answers  


What is the use of hashtable?

0 Answers  


What do you mean by data types?

0 Answers  


How do you check if a stack is empty or not?

0 Answers  


Does treeset allow null values?

0 Answers  


How do you make a bubble chart with 3 variables?

0 Answers  


List the area of applications where stack data structure can be used?

0 Answers  


Can arraylist shrink?

0 Answers  


Which data structure is applied when dealing with a recursive function?

0 Answers  


Who invented quicksort?

0 Answers  


Can value be null in treemap?

0 Answers  


Categories