You are viewing a single comment's thread. Return to all comments →
How does this algorithm deal with repeated elements?
From problem description : "Consider an array of distinct integers "...
My bad. :p
there are no repeated elements ...all the elements are distinct.check the problem statement