mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-01-16 03:43:19 +01:00
Merge pull request #59 from vzvu3k6k/fix-warnings
chore: fix warnings by `ruby -w`
This commit is contained in:
commit
4c2e1d9dea
2 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,5 @@
|
|||
"""
|
||||
Algorithm: Heap-Sort
|
||||
Time-Complexity: O(nlogn)
|
||||
"""
|
||||
# Algorithm: Heap-Sort
|
||||
# Time-Complexity: O(nlogn)
|
||||
def heap_sort(array)
|
||||
array_size = array.size
|
||||
adjusted_array = [nil] + array
|
||||
|
|
Loading…
Reference in a new issue