Better HN
topnewbestaskshowjobs
Log inSign up

Ismail-Maj

2 karma · joined Jan 10, 2022 (4y ago) · 1 submissions

Lurking
Submissions

comment 4y ago · link · parent

It's not a LeetCode problem but I'd be impressed if someone can come up with the 4-liner recursive solution for the Tower of Hanoi problem.

https://cses.fi/problemset/task/2165

https://www.mathsisfun.com/games/towerofhanoi.html

https://www.geeksforgeeks.org/c-program-for-tower-of-hanoi/