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:
vzvu3k6k 2020-11-01 20:49:03 +09:00
parent 9e911b19d6
commit 4125507727

View file

@ -1,7 +1,5 @@
""" # Algorithm: Heap-Sort
Algorithm: Heap-Sort # Time-Complexity: O(nlogn)
Time-Complexity: O(nlogn)
"""
def heap_sort(array) def heap_sort(array)
array_size = array.size array_size = array.size
adjusted_array = [nil] + array adjusted_array = [nil] + array