You are viewing a single comment's thread. Return to all comments →
sorting is not good idea for this problem
we can solve the problem without sorting in O(n)
for (int i=0; i
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
sorting is not good idea for this problem
we can solve the problem without sorting in O(n)
for (int i=0; i