Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 22nd, 2017
65
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.29 KB
| None
|
0
0
raw
download
clone
embed
print
report
def permu(n):
if n==1:
return [[1]]
else:
L=permu(n-1)
Ln=[]
for p in L:
for i in range(n):
q=[]
q=p[:]
q.insert(i,n)
Ln.append(q)
return Ln
print permu(5)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 49 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 52 min ago | 0.39 KB
2024-05-05_stats.json
JSON | 57 min ago | 5.73 KB
2024-05-05_stats.json
JSON | 59 min ago | 5.72 KB
2024-05-05_stats.json
JSON | 60 min ago | 5.67 KB
Untitled
Lua | 1 hour ago | 0.62 KB
Untitled
PHP | 2 hours ago | 15.24 KB
pointer.c
C | 3 hours ago | 0.92 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!