DEV Community

Discussion on: 8.1 Triple Step

Collapse
 
gunplun profile image
Gunnar Plunkett • Edited

Pretty sure this can be done iteratively in O(1) space, since you actually only need to remember the previous three steps.