We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee30660 commit a58dddfCopy full SHA for a58dddf
heapify.py
@@ -1,4 +1,4 @@
1
-# -*- coding: utf-8 -*-
+# coding: utf-8
2
3
class Solution:
4
# @param A: Given an integer array
@@ -22,4 +22,6 @@ def heapify(self, A):
22
A[i], A[min_pos] = A[min_pos], A[i]
23
i = min_pos
24
else: # min_pos没变,A[i]无须调整,结束循环。
25
- break
+ break
26
+
27
+# medium: http://lintcode.com/zh-cn/problem/heapify/
0 commit comments