Skip to content

Commit 96ab97e

Browse files
docs(algorithms, graphs): fix typo
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 50282e6 commit 96ab97e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

algorithms/graphs/alien_dictionary/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ It will look like this:
180180

181181
![Solution 10](./images/solutions/alien_dictionary_solution_10.png)
182182

183-
Now, we can decrement the in-degree count of a node instead of removing it from the reverse adjacency list. When the in-degree of the node reaches
184-
0
185-
0
186-
, this represents that this particular node has no incoming links left.
183+
Now, we can decrement the in-degree count of a node instead of removing it from the reverse adjacency list. When the in-degree of the node reaches 0, this particular node has no incoming links left.
187184

188185
We perform BFS on all the letters that are reachable, that is, the in-degree count of the letters is zero. A letter is
189186
only reachable once the letters that need to be before it have been added to the output, result.

0 commit comments

Comments
 (0)