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
Yes, but the index i may change in _percolateDown() when traversing children. Depending on the new value a node goes either up or down the heap, and since that isn't tracked we need to try both directions.
inline void _fixIdx(SizeT i) { _percolateDown(i); _percolateUp(i); }
_percolateDown already calls _percolateUp, so the standalone call seems redundant.
The text was updated successfully, but these errors were encountered: