You are viewing a single comment's thread. Return to all comments →
+1. Also, you can do this in one pass with O(1) space, just keeping track of "where was the last unmatched odd we saw?"
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →
+1. Also, you can do this in one pass with O(1) space, just keeping track of "where was the last unmatched odd we saw?"