Skip to content

Commit 61abd36

Browse files
committed
Update sol1.rb
1 parent 3168a99 commit 61abd36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

project_euler/problem_014/sol1.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#Which starting number, under one million, produces the longest chain?
1818

19-
def solution?()
19+
def solution()
2020
index_best_result = 0
2121
for num in 2..1000000
2222
index_candidate = 0
@@ -37,6 +37,6 @@ def solution?()
3737
result = value
3838
end
3939

40-
answer = solution?()
40+
answer = solution()
4141
p answer
4242

0 commit comments

Comments
 (0)