You are viewing a single comment's thread. Return to all comments →
its not O(n) yours is constant of O(10e5+1) and to my surprise it worked, primarly because i think the test cases don't have duplicate values.
Seems like cookies are disabled on this browser, please enable them to open this website
Priyanka and Toys
You are viewing a single comment's thread. Return to all comments →
its not O(n) yours is constant of O(10e5+1) and to my surprise it worked, primarly because i think the test cases don't have duplicate values.