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

Does arraylist contain duplicates?

0 Answers  


Define biconnectivity?

0 Answers  


What are the four types of variables?

1 Answers  


What does args stand for?

0 Answers  


What do you mean by 2-3-4 tree?

0 Answers  






Which sorting algorithm uses minimum number of swaps?

0 Answers  


How do I use quick sort?

0 Answers  


What are the different types of data type?

0 Answers  


Differentiate between an array and an arraylist.

0 Answers  


What type of algorithm is binary search?

0 Answers  


Why is hashmap used?

0 Answers  


Why entry interface is used in map?

0 Answers  


Categories