3 ms·I just knocked out a non-recursive solution in 9 lines of python in five minutes.by empath75 7y agoI just knocked out a non-recursive solution in 9 lines of python in five minutes.