New answers tagged

3 votes

The Rien Number

Nekomata, 8 bytes RtƊjo1cɗ Attempt This Online! ...
alephalpha's user avatar
  • 45.5k
1 vote

CGAC2022 Day 10: Help Santa sort presents!

Scala 3, 120 bytes A port of @loopy walt's Python answer. ...
138 Aspen's user avatar
  • 4,077
3 votes

CGAC2022 Day 10: Help Santa sort presents!

Nekomata, 9 bytes ˡ{ᵗ≡ĭ?}aṀ Attempt This Online! ...
alephalpha's user avatar
  • 45.5k
1 vote

Pseudo-Quantum Bogosort

Charcoal, 40 bytes ⊞υ⟦⟧Fθ≔ΣEυE⁻Eθνκ⁺κ⟦μ⟧υFυUMι§θκEΦυ⁼ι⌊υ⭆¹ι Attempt This Online! Link is to verbose version of code. Explanation: ...
Neil's user avatar
  • 163k
1 vote

Pseudo-Quantum Bogosort

Python 3.8+, 75 bytes lambda a:filter(min(p:=[*permutations(a)]).__eq__,p) from itertools import* An unnamed function that accepts a tuple and returns a generator....
Jonathan Allan's user avatar
1 vote

Pseudo-Quantum Bogosort

Factor + math.combinatorics, 49 bytes [ <permutations> [ dup sort = ] parallel-filter ] Attempt This Online! ...
chunes's user avatar
  • 20.8k
2 votes

Pseudo-Quantum Bogosort

Nekomata, 3 4 bytes Edit: +1 byte to fix (unobservable) mechanism-of-action, thanks to alephalpha. ↕:o= Attempt This Online! Nekomata seems well-suited for this. ...
Dominic van Essen's user avatar
2 votes

Pseudo-Quantum Bogosort

Husk, 5 bytes fS=OP Try it online! Quite closely follows the description. ...
Dominic van Essen's user avatar
2 votes

Pseudo-Quantum Bogosort

Python, 77 bytes lambda l:[x for x in permutations(l)if[*x]==sorted(x)] from itertools import* Attempt This Online!
MTN's user avatar
  • 761

Top 50 recent answers are included