mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-30 22:24:11 +01:00
Use comment instead of string literal
This removes the following warning which `ruby -w` emits: > heap_sort.rb:1: warning: unused literal ignored
This commit is contained in:
parent
9e911b19d6
commit
4125507727
1 changed files with 2 additions and 4 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