mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
Fix typos (#191)
This commit is contained in:
committed by
Donne Martin
parent
cd9e9654bc
commit
9f89a51aba
@@ -93,17 +93,17 @@
|
||||
"* incoming edge count (useful for algorithms such as topological sort)\n",
|
||||
"* adjacent nodes and edge weights\n",
|
||||
"\n",
|
||||
"#### add_neighhbor\n",
|
||||
"#### add_neighbor\n",
|
||||
"\n",
|
||||
"* If the neighbor doesn't already exist as an adjacent node\n",
|
||||
" * Update the adjancet nodes and edge weights\n",
|
||||
" * Update the adjacent nodes and edge weights\n",
|
||||
" * Increment the neighbor's incoming edge count\n",
|
||||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(1)\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"#### remove_neighhbor\n",
|
||||
"#### remove_neighbor\n",
|
||||
"\n",
|
||||
"* If the neighbor exists as an adjacent node\n",
|
||||
" * Decrement the neighbor's incoming edge count\n",
|
||||
|
||||
Reference in New Issue
Block a user