Sign up for a GitHub account Sign in All Gists lykkin / gist:90a32ea4292934cefbf5 Created April 01, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav permutations View gist:90a32ea4292934cefbf5 gistfile1.py Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 def perms ( li ): res = [[li.pop()]] for el in li: temp = [] for perm in res: for i in range ( len (perm) + 1 ): perm_copy = perm[:] perm_copy.insert(i, el) temp.append(t) res = temp[:] return res Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment /.discussion-timeline /.gist-content /.container Some...