Skip to content

Commit 2c1e351

Browse files
committed
fix dir structure
1 parent f63f0df commit 2c1e351

File tree

6 files changed

+1
-0
lines changed

6 files changed

+1
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

week4/priority-queues/task3/solution.rb renamed to week4/priority-queues/interview-questions/task3/solution.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def solution(n)
2222
numbers = (1...n).map { |i| i**3 }
2323

2424
# n^2
25+
# Instead of using a hash, we could use an array to store the sums.
2526
h = {}
2627
numbers.each_with_index do |a, i|
2728
((i + 1)...(n - 1)).each do |j|

0 commit comments

Comments
 (0)