mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-02-03 08:46:02 +01:00
Update sol1.rb
This commit is contained in:
parent
3168a99239
commit
61abd3629d
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
#Which starting number, under one million, produces the longest chain?
|
||||
|
||||
def solution?()
|
||||
def solution()
|
||||
index_best_result = 0
|
||||
for num in 2..1000000
|
||||
index_candidate = 0
|
||||
|
@ -37,6 +37,6 @@ def solution?()
|
|||
result = value
|
||||
end
|
||||
|
||||
answer = solution?()
|
||||
answer = solution()
|
||||
p answer
|
||||
|
Loading…
Add table
Reference in a new issue