We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I totally dig this solution, I had wrote my solution to this problem a long time ago and completely overlooked the O(n) solution using O(1) space. Nice job
Cookie support is required to access HackerRank
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 →
I totally dig this solution, I had wrote my solution to this problem a long time ago and completely overlooked the O(n) solution using O(1) space. Nice job