Add Heap
yangshun opened this issue · comments
Heap
class:-
constructor()
-
size
-
isEmpty()
-
peek()
// max or min depending on type of heap -
insert()
-
extract()
-
static heapify<T>(arr: T[])
-
- should cover min heap
- should cover max heap
References
hi @yangshun can I work on this ?
Sure
…On Wed, Jul 22, 2020, 12:29 PM Alpha Barry ***@***.***> wrote:
hi @yangshun <https://github.com/yangshun> can I work on this ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKBCHLMCJYS6WLXMA6IOLTR4ZTJHANCNFSM4D6N2YVA>
.
Note that some part of #66 will cover this. Might make sense to add stuff on top of the existing Priority Queue data structure.
dully noted, I will check.
Thanks