fishercoder1534 / Leetcode

Solutions to LeetCode problems; updated daily. Subscribe to my YouTube channel for more.

Home Page:https://youtube.com/FisherCoder

Repository from Github https://github.comfishercoder1534/LeetcodeRepository from Github https://github.comfishercoder1534/Leetcode

Solve problem 222 iteratively

imsure opened this issue · comments

Hi Jiahuan,

I looked at your code for problem 222, very nice!
To improve it, you may want to do it iteratively instead of using recursion.

Shuo

Sure, that's a great idea! Thanks Shuo! I just updated it with a TODO item. ^ ^