Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for brachylog
Search options answers only not deleted created 2018-02-28 - 2018-03-31
8 votes

Collatz Conjecture (OEIS A006577)

Brachylog, 16 bytes 1b|{/₂ℕ|×₃+₁}↰+₁ Try it online! Explanation Either: 1 The input is 1. … Since we haven't actually specified I, it is still a free variable that Brachylog can backtrack over and it will keep adding on iterations until the next constraint …
Martin Ender's user avatar
5 votes

Blue duck, red duck, gray duck

Brachylog, 68 bytes "Grey"," Red Orange Yellow Green Blue Indigo Violet"ṇṛS," duck"ẉS¬?↰ Try it online! …
Erik the Outgolfer's user avatar
3 votes

The repetitive byte counter

Brachylog, 2 bytes -₂ Try it online! …
Erik the Outgolfer's user avatar
7 votes

Transitive Equality

Brachylog, 22 bytes {tc⊇,?k.&¬(t∋;.xȮ)∧}ᶠt Try it online! Explanation {tc⊇,?k. …
Zgarb's user avatar
  • 42.8k
10 votes

What is my exponential potential?

Brachylog, 12 bytes {^a₀.&b~b^}ᶜ Try it online! Explanation {^a₀. …
6 votes

Am I a Self Number?

Brachylog, 12 bytes ¬{⟦∋Iẹ+;I+?} Try it online! …
Fatalize's user avatar
  • 39.3k
41 votes

Non-discriminating Programming

Brachylog, 10 bytes =ᵍbᵐbᵐlᵍ=l Try it online! Explanation =ᵍ Group all equal elements together bᵐbᵐ Remove the first element of each group twice. …
H.PWiz's user avatar
  • 11.6k
6 votes

Duck, duck, goose!

Brachylog, 24 21 bytes -3 bytes thanks to Erik the Outgolfer "duck"ẉ4ṙ0∧"goose"w∨↰ Try it online! In celebration of the Language of the month, my first brachylog post. …
PunPun1000's user avatar
5 votes

Implement a Truth-Machine

Brachylog, 4 bytes Thanks to Fatalize for saving 1 byte. w?1↰ Try it online! Explanation w Write the input to STDOUT. ?1 Check whether the input equals 1. …
Martin Ender's user avatar
15 votes

Non-discriminating Programming

Brachylog, 14 12 bytes ọtᵐℕ₂ᵐ==tℕ₂ọ Try it online! Explanation ọ Occurrences. …
Martin Ender's user avatar
4 votes

Duck, duck, goose!

Brachylog, 21 bytes 1ṙ+₁;"Duck "j₍,"Goose Try it online! Hey, language of the month going inactive, let's kick things up a little! …
Erik the Outgolfer's user avatar
6 votes

Non-discriminating Programming

Brachylog, 18 bytes oḅlᵐ=h≥2 oḅlᵐ=h≥2 Try it online! Unfortunately, I can't remove the linefeeds, since ḅ on a number triggers a fail. …
Erik the Outgolfer's user avatar
3 votes

Bernardino identifies unaltered dollar words

Brachylog, 12 9 bytes -3 bytes thanks to Fatalize ạ-₉₆ᵐ+100 Takes input as a string of lowercase letters. Try it online! …
DLosc's user avatar
  • 39.2k
2 votes

Golf the Subset-Sum Problem

Similar to Brachylog, Jelly also postdates the challenge, but by now, newer languages compete normally. ŒP Power set. Ḋ Dequeue, remove the first element (empty set). …
user202729's user avatar
  • 17.4k
3 votes

Garble that string!

Brachylog, 21 bytes p.jP;?z≠ᵐ&j¬{s₂p~s}P∧ Try it online! Explanation I really would have wanted for p.;?z≠ᵐ&j¬{s₂p~s~j} to work for 2 bytes less, but it seems ~j is not smart enough... p.jP;? …
Zgarb's user avatar
  • 42.8k

15 30 50 per page