Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

75%
+4 −0
Challenges Is it a near-anagram?

Brachylog, 8 bytes pᵐ≠{b|}ᵛ Try it online! Since it takes $5!*5! = 14400$ tries to determine that the first test case gives false, I've added some shorter ones... pᵐ Permute each ele...

posted 3y ago by Unrelated String‭

Answer
#1: Initial revision by user avatar Unrelated String‭ · 2021-03-07T04:48:20Z (about 3 years ago)
# [Brachylog], 8 bytes

    pᵐ≠{b|}ᵛ

[Try it online!][TIO-klyo3k5f]

[Brachylog]: https://github.com/JCumin/Brachylog
[TIO-klyo3k5f]: https://tio.run/##SypKTM6ozMlPN/pfXa6koGunoFRuX/2obcOjpuZHHcuVSopKU/WUakDMtMScYiC79uGuztqHWyf8LwASjzoXVCfVALmz//@PjlaKUNIB4lgdICsSznR0cgaynR2dUHguSDxHZxdnCNfF38kVJODk7@IKFgkJDfABiYSE@ngGwLS4gERcHF2cILqcHIOAfCDpB@P6QfhBrkCRWAA "Brachylog – Try It Online"

Since it takes $5!*5! = 14400$ tries to determine that the first test case gives false, I've added some shorter ones...

```
pᵐ          Permute each element of the input.
  ≠         The permuted elements are not equal,
   {  }ᵛ    but yield the same result if
     |      maybe
    b       their first elements are removed.