mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-05 17:08:02 +00:00
Removed mention of queue as those are potential hints in solving the problem.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user