mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
Simplified challenge coding and unit tests by working with the node directly as opposed to node.id or node.data, which is more natural when writing coding challenges.
This commit is contained in:
@@ -144,6 +144,9 @@
|
||||
" self.visited = False\n",
|
||||
" self.adjacent = OrderedDict() # key = node, val = weight\n",
|
||||
"\n",
|
||||
" def __str__(self):\n",
|
||||
" return str(self.id)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"class Graph:\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user