luislopez66 před 2 roky
rodič
revize
05bfd2be7e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      heap.py

+ 3
- 3
heap.py Zobrazit soubor

@@ -10,14 +10,14 @@
10 10
 # i. Also, n is the size of a heap and arr is array.
11 11
 
12 12
 def heapify(lista, n, i):
13
-		# largest is root for now
13
+        # largest is root for now
14 14
 		largest = i
15 15
 
16 16
 		# left child of root
17
-		left = 2 * i + 1
17
+		l = 2 * i + 1
18 18
 
19 19
 		# right child of root
20
-		right = 2 * i + 2
20
+		r = 2 * i + 2
21 21
 
22 22
 		# Checks if root has a left child and is greater
23 23
 		# than root