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

Can you please explain the difference between string and an array?

0 Answers  


Does treemap sort on key or value?

0 Answers  


What is the difference between sorting and classifying?

0 Answers  


What is stack and its operations?

0 Answers  


Is hashset thread safe?

0 Answers  






Is hashmap a data structure?

0 Answers  


Which is better bubble sort or selection sort?

0 Answers  


Are linked lists considered linear or non-linear data structure?

0 Answers  


How do you create a tree diagram?

0 Answers  


Discuss the difference between a stack and an Array?

0 Answers  


What is sorting and its types?

0 Answers  


What is range search?

0 Answers  


Categories