You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find a description on what peek() and peekPriority() return when the heap is empty. pop() has a return type of number | undefined, and is documented to return undefined if the heap is emtpy, but peek() and peekPriority() both return just number.
The text was updated successfully, but these errors were encountered:
I could not find a description on what
peek()
andpeekPriority()
return when the heap is empty.pop()
has a return type ofnumber | undefined
, and is documented to returnundefined
if the heap is emtpy, butpeek()
andpeekPriority()
both return justnumber
.The text was updated successfully, but these errors were encountered: