mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
parent
a88f0a0b0b
commit
385bc54efa
|
@ -101,7 +101,7 @@
|
|||
"\n",
|
||||
" def bfs(self, visit_func):\n",
|
||||
" if self.root is None:\n",
|
||||
" raise Exception('root is None')\n",
|
||||
" raise TypeError('root is None')\n",
|
||||
" queue = deque()\n",
|
||||
" queue.append(self.root)\n",
|
||||
" while queue:\n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user