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)

0 comments:

Post a Comment

 
Moviehole-madhurtanwani © 2010 | Designed by Chica Blogger | Back to top