Skip to content

Instantly share code, notes, and snippets.

View relopezz's full-sized avatar
🏠
Working from home, wherever home is in this world

Rita relopezz

🏠
Working from home, wherever home is in this world
View GitHub Profile

Keybase proof

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:

@relopezz
relopezz / fibos.go
Created April 19, 2021 08:23
Go-Fib-Alternatives
// 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)
}
@relopezz
relopezz / task.bash
Last active November 10, 2015 19:41
Training bash
#!/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