You are viewing a single comment's thread. Return to all comments →
actually you cannot have n/2 solution coz big-O not allow constants. so this is O(n) solution
Seems like cookies are disabled on this browser, please enable them to open this website
The Love-Letter Mystery
You are viewing a single comment's thread. Return to all comments →
actually you cannot have n/2 solution coz big-O not allow constants. so this is O(n) solution