We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 969784d commit b671dc7Copy full SHA for b671dc7
notes/sorting.md
@@ -618,6 +618,7 @@ We will sort the array:
618
Binary tree view:
619
620
```
621
+Heap:
622
4
623
/ \
624
10 3
@@ -628,6 +629,7 @@ Binary tree view:
628
629
Heapify → Largest at top:
630
631
632
633
10
634
635
5 3
@@ -648,6 +650,7 @@ Swap 10 ↔ 1 → largest (10) moves to correct final place.
648
650
Heapify the reduced heap \[1,5,3,4]:
649
651
652
653
654
5
655
656
4 3
@@ -668,6 +671,7 @@ Swap 5 ↔ 1.
668
671
Heapify reduced heap \[1,4,3]:
669
672
670
673
674
675
676
677
1 3
@@ -686,6 +690,7 @@ Swap 4 ↔ 3.
686
690
Heapify reduced heap \[3,1]:
687
691
688
692
693
689
694
3
695
/
696
1
0 commit comments