We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f0bfa commit f7d75d0Copy full SHA for f7d75d0
힙 정렬/note.md
@@ -15,7 +15,7 @@ public class Main {
15
16
public static void main(String[] args) {
17
// 최대힙 구조를 구성
18
- for (int i = 1; i < heap.length; i++) { // 참고로 0부터 시작하면 /2를 못하고 1/2하면 어차피 0으로 들어가니까
+ for (int i = 1; i < heap.length; i++) { // 참고로 1/2하면 어차피 0으로 들어가니까
19
int now = i;
20
/** 1. 기본적인 힙을 구성한다.
21
* 여기서 하고자 하는 것은 매번 새로운 노드를 추가할 때 마다 추가한 노드가 루트보다 크면 위로 올린다
0 commit comments