From 41255077271fb9ff64313c0ca324f08b56618d9e Mon Sep 17 00:00:00 2001 From: vzvu3k6k Date: Sun, 1 Nov 2020 20:49:03 +0900 Subject: [PATCH] Use comment instead of string literal This removes the following warning which `ruby -w` emits: > heap_sort.rb:1: warning: unused literal ignored --- Sorting/heap_sort.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sorting/heap_sort.rb b/Sorting/heap_sort.rb index c0431a8..9b527f7 100644 --- a/Sorting/heap_sort.rb +++ b/Sorting/heap_sort.rb @@ -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