Skip to content

Commit f7d75d0

Browse files
authored
Update note.md
1 parent 87f0bfa commit f7d75d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

힙 정렬/note.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Main {
1515
1616
public static void main(String[] args) {
1717
// 최대힙 구조를 구성
18-
for (int i = 1; i < heap.length; i++) { // 참고로 0부터 시작하면 /2를 못하고 1/2하면 어차피 0으로 들어가니까
18+
for (int i = 1; i < heap.length; i++) { // 참고로 1/2하면 어차피 0으로 들어가니까
1919
int now = i;
2020
/** 1. 기본적인 힙을 구성한다.
2121
* 여기서 하고자 하는 것은 매번 새로운 노드를 추가할 때 마다 추가한 노드가 루트보다 크면 위로 올린다

0 commit comments

Comments
 (0)