├── .gitignore ├── entries ├── funemy │ ├── .gitignore │ ├── agda │ │ └── fib1.agda │ └── z3 │ │ └── z3fib.sh ├── pkoronkevich │ └── tex │ │ ├── README.md │ │ ├── render.pdf │ │ ├── render.png │ │ └── fib.tex ├── laelath │ └── fib.bf ├── nritschel │ ├── scratch │ │ ├── README.md │ │ └── fib.sb3 │ ├── xlsx │ │ └── fib.xlsx │ ├── assets │ │ └── scratch.png │ └── fib-java │ │ ├── src │ │ ├── FibonacciCalculator.java │ │ ├── FibonacciNumberFactory.java │ │ ├── NaiveFibonacciNumberFactory.java │ │ ├── CachedFibonacciNumberFactory.java │ │ ├── FibonacciNumber.java │ │ ├── FibonacciCalculatorImpl.java │ │ └── Main.java │ │ └── fib.iml ├── braxtonhall │ ├── homework │ │ ├── fib.hpp │ │ └── fib.cpp │ ├── express │ │ ├── package.json │ │ ├── index.js │ │ └── package-lock.json │ ├── types │ │ ├── index.ts │ │ └── test.ts │ └── adam │ │ └── main.py ├── nxjfxu │ └── fib.hs ├── adirar111 │ ├── wasm │ │ ├── fib.wasm │ │ ├── style.css │ │ ├── index.html │ │ ├── index.js │ │ └── fib.wat │ └── y86 │ │ └── fib.s ├── jyoo980 │ ├── scala │ │ └── Fib.scala │ └── vintage-htdp │ │ └── fib.rkt ├── Tarcisio-Teixeira │ └── fib.py ├── gonzalezf │ └── fib.py ├── MarieSal0 │ └── FibonacciWorkplace │ │ ├── FibonacciWorkplace.csproj │ │ ├── Program.cs │ │ └── .gitignore ├── rtholmes │ └── Fibonacci series in JavaScript - Stack Overflow.webloc ├── StuartLiv │ └── ThetaFibN.java ├── fbanados │ ├── fib.st │ └── fib.v ├── zgrannan │ └── Fib.hs ├── dewert99 │ ├── fib.rs │ └── fib_compiled ├── ionathanch │ ├── fib.f90 │ └── Fib.agda ├── margoseltzer │ └── efficiency.c ├── meghasinghania22 │ └── bash │ │ └── script.sh ├── lizard-business │ ├── fib.maude │ └── fib.dats ├── shayanh │ └── matrix.go ├── Metroxe │ └── index.html ├── perryliao │ └── fib.groovy ├── davepagurek │ └── index.html └── rxg │ └── fib.rkt ├── .github ├── pull_request_template.md └── workflows │ └── pull.yml ├── .vscode └── settings.json ├── .gitmodules ├── .editorconfig ├── README.md ├── bin └── checkPeople.js ├── index.html └── people.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | *.pem 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /entries/funemy/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.agdai 3 | *.smt2 4 | -------------------------------------------------------------------------------- /entries/pkoronkevich/tex/README.md: -------------------------------------------------------------------------------- 1 | fib.tex preview -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | - [ ] I added myself to [`people.json`](./people.json)! 2 | -------------------------------------------------------------------------------- /entries/laelath/fib.bf: -------------------------------------------------------------------------------- 1 | >101p011p&:v:-1 < 2 | v+g11g10_11g.@ 3 | >11g01p11p ^ 4 | -------------------------------------------------------------------------------- /entries/nritschel/scratch/README.md: -------------------------------------------------------------------------------- 1 | scratch preview -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "string": "cpp" 4 | } 5 | } -------------------------------------------------------------------------------- /entries/braxtonhall/homework/fib.hpp: -------------------------------------------------------------------------------- 1 | class Fibonacci 2 | { 3 | int fib(const int n) const; 4 | }; 5 | -------------------------------------------------------------------------------- /entries/nritschel/xlsx/fib.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalezf/fib/main/entries/nritschel/xlsx/fib.xlsx -------------------------------------------------------------------------------- /entries/nritschel/scratch/fib.sb3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalezf/fib/main/entries/nritschel/scratch/fib.sb3 -------------------------------------------------------------------------------- /entries/nritschel/assets/scratch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalezf/fib/main/entries/nritschel/assets/scratch.png -------------------------------------------------------------------------------- /entries/pkoronkevich/tex/render.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalezf/fib/main/entries/pkoronkevich/tex/render.pdf -------------------------------------------------------------------------------- /entries/pkoronkevich/tex/render.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gonzalezf/fib/main/entries/pkoronkevich/tex/render.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "entries/wilbowma/fib-lang"] 2 | path = entries/wilbowma/fib-lang 3 | url = git@github.com:wilbowma/fib-lang.git 4 | -------------------------------------------------------------------------------- /entries/nxjfxu/fib.hs: -------------------------------------------------------------------------------- 1 | fib :: Int -> Int 2 | fib = (fibs !!) 3 | where 4 | fibs = 0 : 1 : [fibs !! (i - 2) + fibs !! (i - 1) | i <- [2..]] 5 | 6 | -------------------------------------------------------------------------------- /entries/nritschel/fib-java/src/FibonacciCalculator.java: -------------------------------------------------------------------------------- 1 | public interface FibonacciCalculator { 2 | public int calculateFibonacci(FibonacciNumber fib); 3 | } 4 | -------------------------------------------------------------------------------- /entries/nritschel/fib-java/src/FibonacciNumberFactory.java: -------------------------------------------------------------------------------- 1 | public interface FibonacciNumberFactory { 2 | public FibonacciNumber getFibonacciNumber(int num); 3 | } 4 | -------------------------------------------------------------------------------- /entries/adirar111/wasm/fib.wasm: -------------------------------------------------------------------------------- 1 | asm`fib 2 | GE AH@  A!A!A! Aj!@ !  j! ! Aj!  H  (namefibnlastsumitmp -------------------------------------------------------------------------------- /entries/jyoo980/scala/Fib.scala: -------------------------------------------------------------------------------- 1 | def fib(n: Int): Int = 2 | (0 until n).foldLeft((0, 1)) { 3 | case ((prev, curr), _) => (curr, prev + curr) 4 | } match { 5 | case (n, _) => n 6 | } 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | trim_trailing_whitespace = true 6 | insert_final_newline = true 7 | indent_style = tab 8 | indent_size = 4 9 | 10 | [*.md] 11 | trim_trailing_whitespace = false 12 | -------------------------------------------------------------------------------- /entries/Tarcisio-Teixeira/fib.py: -------------------------------------------------------------------------------- 1 | def fib(n,arr={},v =-1): 2 | if v>=0: 3 | arr[n]=v 4 | return v 5 | return arr[n] if n in arr.keys() else fib(n, arr, (2*n*n*n - 9*n*n+13*n)//6 if n <= 3 else fib(n//2-1,arr)*fib(n-n//2,arr) + fib(n//2,arr)*fib(n-n//2+1,arr)) 6 | -------------------------------------------------------------------------------- /entries/nritschel/fib-java/src/NaiveFibonacciNumberFactory.java: -------------------------------------------------------------------------------- 1 | public class NaiveFibonacciNumberFactory implements FibonacciNumberFactory { 2 | @Override 3 | public FibonacciNumber getFibonacciNumber(int num) { 4 | return new FibonacciNumber(num); 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /entries/gonzalezf/fib.py: -------------------------------------------------------------------------------- 1 | 2 | def fibonacci(n): 3 | if n == 1 or n == 0: 4 | return 1 5 | else: 6 | return fibonacci(n-1) + fibonacci(n-2) 7 | 8 | 9 | def main(): 10 | n = int(input('Insert n: ')) 11 | print('Fibonacci (',n,') =', fibonacci(n)) 12 | 13 | if __name__ == "__main__": 14 | main() -------------------------------------------------------------------------------- /entries/MarieSal0/FibonacciWorkplace/FibonacciWorkplace.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net6.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /entries/rtholmes/Fibonacci series in JavaScript - Stack Overflow.webloc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | URL 6 | https://stackoverflow.com/a/55764043 7 | 8 | 9 | -------------------------------------------------------------------------------- /entries/braxtonhall/express/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fib", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "start": "node index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "axios": "^1.1.3", 14 | "express": "^4.18.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /entries/StuartLiv/ThetaFibN.java: -------------------------------------------------------------------------------- 1 | public class ThetaFibN { 2 | 3 | //Fibonacci(n) is asymptotically in ϴ(Fibonacci(n)) 4 | public int Fibonacci(int n) { 5 | String reference = "0"; 6 | int fib = 1; 7 | for(int i = 1; i <= n; i++) { 8 | fib = reference.length(); 9 | reference = reference.replace("0", "").replace("1", "0") + "1".repeat(fib); 10 | } 11 | return fib; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /entries/fbanados/fib.st: -------------------------------------------------------------------------------- 1 | 'From Pharo10.0.0 of 15 June 2022 [Build information: Pharo-10.0.0+build.521.sha.14f541319d443f4261f84f4fa19fbb34460a5edb (64 Bit)] on 24 October 2022 at 11:26:20.436554 am'! 2 | 3 | !Integer methodsFor: '*Fibonacci' stamp: 'FelipeBanados 10/24/2022 11:13'! 4 | fibonacciNumber 5 | self <= 2 ifTrue: [ ^ 1 ]. 6 | ^ (self - 1) fibonacciNumber + (self - 2) fibonacciNumber. 7 | 8 | ! ! 9 | -------------------------------------------------------------------------------- /entries/jyoo980/vintage-htdp/fib.rkt: -------------------------------------------------------------------------------- 1 | ;; Natural -> Natural 2 | ;; given n, produce the nth fibonacci number 3 | (check-expect (fib 0) 0) 4 | (check-expect (fib 1) 1) 5 | (check-expect (fib 2) 1) 6 | (check-expect (fib 7) 13) 7 | 8 | ; (define (fib n) 0) ; stub 9 | 10 | ;