CtCI-6th-Edition-Python
CtCI-6th-Edition-Python copied to clipboard
Space efficient solution O(1)
Add a more space efficient solution and add proper testing. The solution is O(n) time and O(1) space.