I hereby claim:
- I am relopezz on github.
- I am relopez (https://keybase.io/relopez) on keybase.
- I have a public key ASAzsesnCYumqj-4eY9vKAMg5EnLyHjOGZEFaByE2WofOAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Brute Force - Recursive O(2^n) | |
func FibonacciBF(n int) int { | |
if n == 1 { | |
return 0 | |
} | |
if n == 2 { | |
return 1 | |
} | |
return FibonacciBF(n-1) + FibonacciBF(n-2) | |
} |
#!/bin/bash | |
#know if a number is odd. From 1 to 99. | |
for i in {1..99} | |
do | |
odd=$(( $i % 2 )) | |
if [ $odd -ne 0 ] | |
then | |
echo $i | |
fi | |
done |