Skip to content

Commit 679422b

Browse files
authored
Update comments to use colons instead of dashes
1 parent de67620 commit 679422b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sorts/smoothsort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def smoothsort(seq: list[int]) -> list[int]:
160160
heap_sizes: list[int] = []
161161

162162
# ------------------------------------------------------------------
163-
# Phase 1 Build the Leonardo heap forest over seq[0..n-1].
163+
# Phase 1 : Build the Leonardo heap forest over seq[0..n-1].
164164
# ------------------------------------------------------------------
165165
for i in range(n):
166166
# If the two rightmost trees have consecutive orders, merge them.
@@ -175,7 +175,7 @@ def smoothsort(seq: list[int]) -> list[int]:
175175
_trinkle(seq, i, heap_sizes, len(heap_sizes) - 1)
176176

177177
# ------------------------------------------------------------------
178-
# Phase 2 Extract maximum elements right-to-left.
178+
# Phase 2 : Extract maximum elements right-to-left.
179179
# ------------------------------------------------------------------
180180
for i in range(n - 1, -1, -1):
181181
order = heap_sizes.pop()

0 commit comments

Comments
 (0)