File tree Expand file tree Collapse file tree
project_euler/problem_006 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 153153 * [ Sol2] ( https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_004/sol2.rb )
154154 * Problem 005
155155 * [ Sol1] ( https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_005/sol1.rb )
156- * Problem 006
157- * [ Sol1] ( https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_006/sol1.rb )
158156 * Problem 020
159157 * [ Sol1] ( https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_020/sol1.rb )
160158 * Problem 021
Original file line number Diff line number Diff line change 1111#Find the difference between the sum of the squares of the first one
1212#hundred natural numbers and the square of the sum.
1313
14- def solution? ( num )
14+ def solution? ( )
15+ num = 10
1516 x = 1
1617 y = 1
1718 result = 1
@@ -28,8 +29,5 @@ def solution?(num)
2829 r_sum_n_pow2 - r_n_pow2_plus_n_pow2
2930end
3031
31- answer = 0
32- answer = solution? ( 10 )
33-
34-
32+ answer = solution? ( )
3533p answer
You can’t perform that action at this time.
0 commit comments