mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Removed mention of queue as those are potential hints in solving the problem.
This commit is contained in:
parent
a20ac9cdf0
commit
11f94f9ba8
|
@ -34,8 +34,6 @@
|
||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Can we assume we already have a Node class with an insert method?\n",
|
"* Can we assume we already have a Node class with an insert method?\n",
|
||||||
" * Yes\n",
|
|
||||||
"* Can we use collections.deque for the queue?\n",
|
|
||||||
" * Yes"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -73,9 +71,6 @@
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from collections import deque\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"class MyNode(Node):\n",
|
"class MyNode(Node):\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def bfs(self, visit_func):\n",
|
" def bfs(self, visit_func):\n",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user