clean stash a little
This commit is contained in:
parent
5e8688c417
commit
d59370bdc7
@ -1,10 +0,0 @@
|
||||
|
||||
function factorial(n) {
|
||||
if (eq(n, 1)) {
|
||||
1
|
||||
} else {
|
||||
times(n, factorial(minus(n, 1)))
|
||||
}
|
||||
}
|
||||
|
||||
print(factorial(4))
|
@ -1,8 +0,0 @@
|
||||
def fibonaccir( n , put )
|
||||
return n if n <= 1
|
||||
res = fibonaccir( n - 1 , put ) + fibonaccir( n - 2 , false )
|
||||
puts(res) if put
|
||||
res
|
||||
end
|
||||
|
||||
fibonaccir( 10 , true)
|
Loading…
Reference in New Issue
Block a user