You are viewing a single comment's thread. Return to all comments →
Did the same, nice and clean O(n) solution. Can be also done with SparceArray instead of TreeMap with the same idea in mind.
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the sticks
You are viewing a single comment's thread. Return to all comments →
Did the same, nice and clean O(n) solution. Can be also done with SparceArray instead of TreeMap with the same idea in mind.