Showing posts with label duplicate. Show all posts
Showing posts with label duplicate. Show all posts

Find duplicates in an array

Given an array of size 'n', containing elements from 1 to 'n', find out if there are any duplicates in the array. Solve this, if
  • a single duplicate number exists
  • multiple duplicate numbers exist
 Source : CLRS & this blog question (that I did not get)
 
Moviehole-madhurtanwani © 2010 | Designed by Chica Blogger | Back to top