You are viewing a single comment's thread. Return to all comments →
Great solution!
I don't think I could ever have come up with something like that!
Is this considered a greedy solution?
One thing I did change was to make the array size N+2 and skipped the bounds check.
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Great solution!
I don't think I could ever have come up with something like that!
Is this considered a greedy solution?
One thing I did change was to make the array size N+2 and skipped the bounds check.