mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-07 13:01:03 -04:00
fix(curriculum): correct typo in depth first search lesson (#65649)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
904dd9b871
commit
f1a8fe12bc
@@ -150,7 +150,7 @@ Depth-first search (DFS) is commonly used to solve puzzles with a single solutio
|
||||
|
||||
This algorithm can be implemented using recursion or a stack data structure to keep track of the visited nodes.
|
||||
|
||||
Stacks follow the LIFO (last in, first out) method, where the last node that was added to the stack is the first one to the removed from the stack.
|
||||
Stacks follow the LIFO (last in, first out) method, where the last node that was added to the stack is the first one to be removed from the stack.
|
||||
|
||||
The algorithm works like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user