mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update README.md
This commit is contained in:
parent
66a2a3ad3a
commit
a8e6ec8884
@ -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…
x
Reference in New Issue
Block a user