repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* transcode.c (make_econv_exception): add several instance variables
[ruby-svn.git]
/
benchmark
/
bm_app_tarai.rb
blob
4c146f5ccf885f6ad7958d36e94af17a4815bed8
1
def tarai( x, y, z )
2
if x <= y
3
then y
4
else tarai(tarai(x-1, y, z),
5
tarai(y-1, z, x),
6
tarai(z-1, x, y))
7
end
8
end
9
10
tarai(12, 6, 0)