Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FÜU 23.08
//JavaScript-C24.2.0 (SpiderMonkey) var fib = function(n) { if(n<=2) return 1; else return fib(n-1) + fib(n-2); } var pas = function(n,k) { if(n == 0 || k == 0 || n == k) return 1; else return pas(n-1,k-1) + pas(n-1,k) } var printPas = function(n) { for(var i = 0; i <= n; i++) { for(var b = 0; b <= i; b ++) { print(pas(i,b)); } print("\n"); } } var pasVerlauf = function(n,k) { print("pas(" + n + "," + k+ ")"); if(n == 0 || k == 0 || n == k) return 1; else return pasVerlauf(n-1,k-1) + pasVerlauf(n-1,k) } print(pasVerlauf(4,2));
run
|
edit
|
history
|
help
0
Precio Helado
JS is_sorted
CWG - pages
Loops
My Code1
class Queue
Strange Attractors
linq-style in javascript
H
fb_series