# Tag Info

### What are the five most powerful characters in your language?

Python3, 21 27 values Characters: 3479% Unique numbers: [1,2,3,4,5,6,7,8,9,11,12,19,20,21,24,29,34,35,36,37,39,43,46,47,49,73,74]...
• 3,762

### What are the five most powerful characters in your language?

Python, 18 numbers 237#- Produces as valid results: 1, 2, 3, 4, 5, 7, 16, 23, 24, 25, 27, 32, 35, 37, 69, 71, 72, 73 EDIT: ...
• 12.2k

### What are the five most powerful characters in your language?

05AB1E, 27 38 41 numbers 4·>Ìn Generates the unique numbers: ...
• 52.9k

### Golf bit weaving

Python 2.7, 44 -> 36 bytes lambda x:x/4&42|x*2&128|x*4&84|x/2&1
• 1,241

• 3,809

### Greater than less than greater than something fishy

><>, 26 + 4 = 30 bytes l22pirv 1+$2po>:3%::2g:n$- Try it online! +4 bytes for the -s= flag - if just ...
• 61.7k

### What are the five most powerful characters in your language?

Java 8, 2 4 numbers n->12 // returns 12 n->21 // returns 21 n1->2 // returns 2 n2->1 // returns 1 Weren't expecting a Java answer, were you? This ...
• 1,296

### Alphabetically permute a string

Jelly, 5 bytes ṢŒ!QY Try it online! Explanation ...
• 104k

### Levi-Civita symbol

Jelly, 5 bytes ṁ4IṠS Try it online! Algorithm Let's consider the differences j-i, k-j, i-k. If (i, j, k) is a rotation of (1, 2, 3), the differences are a ...
• 209k

Python 3, 46 bytes, Lynn lambda x0223334566789:(x0223334566789*89)//178
• 20.8k
Accepted

### Ethan Finds the Maximum Element

APL (Dyalog Unicode), 5 3 bytes ⍳⊥× Try it online! Adám gave me an inspiration to golf this further. How it works ...
• 72.9k
Accepted

### The Combinatorics of Transistor

CJam (56 bytes) q~4@:Nm*:$_&{:+1$\-N),&},f{1$1$:+-\0-:(_e0f=+++:m!:/}:+ Online demo This is an optimised version of the reference implementation I ...
• 43.1k

### Deranged !Combinatorics: Compute the Subfactorial

Funciton, 336 bytes Byte count assumes UTF-16 encoding with BOM. ...
• 196k

### Output an Anagram! No Not That One!

Python 3, 64 bytes lambda a:[*{*permutations(a[0])}-{*a}][0] from itertools import* Try it online!
• 42.3k

### Faro shuffle an array

vim, 62 59 54 qrma50%mb:norm@q<cr>ggqOjdd'apjma'b@q<esc>0"qDJ<C-a>D@"i@r<esc>xxdd@" Wow. This is possibly the hackiest thing I've written ...
• 71.4k

### Antsy permutations

Pyth, 7 bytes /y+_QQS Try it online. (Only small test cases are included due to exponential run-time.) Outputs 2 for Truthy, 0 for Falsey. ...
• 144k

### Counting from 1 to n without any consecutive numbers

Mathematica, 58 bytes, polynomial(n) time Abs[Sum[(k-1)Hypergeometric2F1[k,k-#,2,2](#-k)!,{k,#}]-1]& How it works Rather than iterating over permutations ...
• 39.2k

### Ethan Finds the Maximum Element

Jelly, 6 bytes RU×\S: Try it online! Let's analyze under which scenarios this algorithm works. If the maximum element is at the end of the list, this obviously ...
• 41.1k
Accepted

### Can you reach this number by doubling and rearranging?

Pyth, 43 bytes ?}QKhu?Jf}QTGJsm+Ld+yedsMfnhT\0.pedGQ]]1KY Demonstration. This is starts by generating all possible double or rearrange sequences. However, ...
• 41.7k

### Code-Golf: Permutations

Python, 52 Input is a set. Output is a list of lists. f=lambda a:[p+[x]for x in a for p in f(a-{x})]or[[]] This is shorter than the answer that does all the work ...
• 31.3k

### The Permutation Pigeon-hole Principle

Brachylog, 21 bytes :1fz:da|,[] :2a#d :Am Try it online! Try it online! Predicate 0 (main predicate) ...
• 49.5k

### Sheffle tho vawols ureund!

R, 92 91 Can't comment yet so I'm adding my own answer albeit very similar to @Andreï Kostyrka answer (believe it or not but came up with it independently). ...
• 3,493
Accepted

### Find a binary needle in a decimal haystack

05AB1E, 10 8 bytes Takes the needle in binary to save 1 byte. -2 bytes thanks to Emigna œJÙʒbŒIå Try it online! ...
• 2,004
Accepted

### Random array without repetition

Dyalog APL, 1 byte ? Just a builtin. Try it here.
• 21.4k