Update solution file and remove link from directory

This commit is contained in:
domix80 2023-02-21 18:12:39 +01:00
parent 612f4bfa32
commit 95930cc229
2 changed files with 3 additions and 7 deletions

View file

@ -153,8 +153,6 @@
* [Sol2](https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_004/sol2.rb)
* Problem 005
* [Sol1](https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_005/sol1.rb)
* Problem 006
* [Sol1](https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_006/sol1.rb)
* Problem 020
* [Sol1](https://github.com/TheAlgorithms/Ruby/blob/master/project_euler/problem_020/sol1.rb)
* Problem 021

View file

@ -11,7 +11,8 @@
#Find the difference between the sum of the squares of the first one
#hundred natural numbers and the square of the sum.
def solution?(num)
def solution?()
num = 10
x = 1
y = 1
result = 1
@ -28,8 +29,5 @@ def solution?(num)
r_sum_n_pow2 - r_n_pow2_plus_n_pow2
end
answer = 0
answer = solution?(10)
answer = solution?()
p answer