3 ms·Python solution. http://pastebin.com/KyFTXpEr http://pastebin.com/KyFTXpEr O(N) / No additional arraysby laxk 15y agoPython solution. http://pastebin.com/KyFTXpEr http://pastebin.com/KyFTXpEr O(N) / No additional arrays