mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 16:31:15 -04:00
Update README.md
This commit is contained in:
parent
66a2a3ad3a
commit
a8e6ec8884
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
* stacks are useful in **depth-first search** algorithms, where you can push temp data as you recurse, and remove them from the (memory or data structure) stack as you backtrace.
|
||||
|
||||
* to keep `find_min()` at `O(1)`, you can keep track of the minimum when pushing and poping:
|
||||
* to keep `find_min()` at `O(1)`, you can keep track of "prior minimum" when pushing and poping:
|
||||
|
||||
<br>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue