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

Is char array null terminated?

0 Answers  


What is perfect binary tree?

0 Answers  


Why arraylist is not efficient for manipulation?

0 Answers  


Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.

22 Answers   Syntel, TCS,


How many types of lists are there?

0 Answers  






How do you define a set?

0 Answers  


Is it possible to make an array volatile in java?

0 Answers  


How do I rearrange rows in numbers?

0 Answers  


How to find 3rd element from end in a linked list in one pass?

0 Answers  


Differentiate between arraylist and vector.

0 Answers  


Is queue fifo or lifo?

0 Answers  


List the area of applications of data structure.

0 Answers  


Categories