Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 18th, 2017
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
#Lattice paths
def fact(n)
if (n==1)
return 1
end
return n*fact(n-1)
end
def numPaths()
p fact(40)/(fact(20)*fact(20))
end
numPaths
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $2200 in 15 minutes 4
JavaScript | 3 sec ago | 0.21 KB
Make 3500$ in 1 day [Method]???? XH
JavaScript | 39 sec ago | 0.15 KB
MAKE $5000 INSTANTLY U
JavaScript | 51 sec ago | 0.21 KB
Make $2200 in 15 minutes 9
JavaScript | 1 min ago | 0.21 KB
MAKE $5000 INSTANTLY T
JavaScript | 1 min ago | 0.21 KB
Hadez Method Leaked???? TC
JavaScript | 1 min ago | 0.15 KB
✅ MAKE $22OO IN 10 MIN G
JavaScript | 1 min ago | 0.21 KB
MAKE $5000 INSTANTLY 4
JavaScript | 2 min ago | 0.21 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!