mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-30 04:36:08 -04:00
Update README.md
This commit is contained in:
parent
29b7948275
commit
c04d598bfa
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
* heap is a data structure capable of giving you the smallest (or the largest) element in constant time, while adding or removing the smallest (or the largest) element on logarithmic time.
|
* heap is a data structure capable of giving you the smallest (or the largest) element in constant time, while adding or removing the smallest (or the largest) element on logarithmic time. however, adding a new element can be `O(N)`.
|
||||||
|
|
||||||
* a heap is a binary tree with these properties:
|
* a heap is a binary tree with these properties:
|
||||||
* it must have all of **its nodes in a specific order**, and
|
* it must have all of **its nodes in a specific order**, and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user