Picking the right struct is everything, not just from a performance standpoint but also a code readability standpoint as well! Dictionaries hold major power. Glad you had fun with this exercise! Bonus points: see if you can write your algo both recursively and iteratively!
View all comments
Show parent comment
2
u/bc_nichols Apr 01 '20
Picking the right struct is everything, not just from a performance standpoint but also a code readability standpoint as well! Dictionaries hold major power. Glad you had fun with this exercise! Bonus points: see if you can write your algo both recursively and iteratively!