mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-14 21:38:02 +00:00
Update graph challenge (#117)
Use more specific exception types. Update constraints. Update add_undirected_edge to use add_edge.
This commit is contained in:
@@ -38,12 +38,14 @@
|
||||
" * Implement both\n",
|
||||
"* Do the edges have weights?\n",
|
||||
" * Yes\n",
|
||||
"* Can we assume the inputs are valid?\n",
|
||||
"* Can the graph have cycles?\n",
|
||||
" * Yes\n",
|
||||
"* If we try to add a node that already exists, do we just do nothing?\n",
|
||||
" * Yes\n",
|
||||
"* If we try to delete a node that doesn't exist, do we just do nothing?\n",
|
||||
" * Yes\n",
|
||||
"* Can we assume the inputs are valid?\n",
|
||||
" * Yes\n",
|
||||
"* Can we assume this fits memory?\n",
|
||||
" * Yes"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user