Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
F = (n) ->
|
||||
if n is 0 then 1 else n - M F n - 1
|
||||
|
||||
M = (n) ->
|
||||
if n is 0 then 0 else n - F M n - 1
|
||||
|
||||
console.log [0...20].map F
|
||||
console.log [0...20].map M
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> coffee mutual_recurse.coffee
|
||||
[ 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9, 10, 11, 11, 12 ]
|
||||
[ 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9, 10, 11, 11, 12 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue