Skip to content

Commit a58dddf

Browse files
authored
Update heapify.py
1 parent ee30660 commit a58dddf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

heapify.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param A: Given an integer array
@@ -22,4 +22,6 @@ def heapify(self, A):
2222
A[i], A[min_pos] = A[min_pos], A[i]
2323
i = min_pos
2424
else: # min_pos没变,A[i]无须调整,结束循环。
25-
break
25+
break
26+
27+
# medium: http://lintcode.com/zh-cn/problem/heapify/

0 commit comments

Comments
 (0)