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
What is a Stack? Explain with example?
How do you define a set?
Describe the level term in a tree.
Why is null not allowed in concurrenthashmap?
What does the term sorting refer to?
Give us a program to reverse a linked list.
Which collection type is used to maintain uniqueness of data structure?
How do you find the complexity of a bubble sort?
What are the pre-requisite for the collection to perform binary search?
How to sort an Array?
Is hashtable better than dictionary?
What is stack in geography?