mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 02:48:02 +00:00
Update formatting and whitespace in a few challenges (#142)
This commit is contained in:
@@ -62,9 +62,9 @@
|
||||
"* Create three stacks to represent each tower\n",
|
||||
"* def hanoi(n, src, dest, buffer):\n",
|
||||
" * If 0 disks return\n",
|
||||
" * hanoi(n-1, src, buffer)\n",
|
||||
" * hanoi(n-1, src, buffer, dest)\n",
|
||||
" * Move remaining element from src to dest\n",
|
||||
" * hanoi(n-1, buffer, dest) \n",
|
||||
" * hanoi(n-1, buffer, dest, src)\n",
|
||||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(2^n)\n",
|
||||
|
||||
Reference in New Issue
Block a user