Skip to main content

New answers tagged

0 votes

Island Golf #2: The Eccentric Hermits

Dyalog APL, 186 179 bytes ...
Aaron's user avatar
  • 171
0 votes

Count Maximal Fence Arrangements

Python3, 462 bytes ...
Ajax1234's user avatar
  • 7,441
0 votes

Cutpoints in a maze

Uiua, 35 bytes ⬚0↯:°⊚▽≠⍜⊂≡(⧻⊜π.⍜⬚∞⊡¬)⊙(,¤⟜⊚)⟜:⊂.⧻. Try it! ...
nyxbird's user avatar
  • 475
1 vote

Cutpoints in a maze

Python3, 341 bytes ...
Ajax1234's user avatar
  • 7,441
5 votes

Ways to paint a backbone on a tree

Python, 161 150 bytes -11 bytes thanks to @xnor's idea in the comments ...
CursorCoercer's user avatar
1 vote

Ways to paint a backbone on a tree

Scala 3, 1987 bytes A port of @Ajax1234's Python code in Scala. 1987 bytes, it can be golfed much more. Golfed version. Attempt This Online! ...
138 Aspen's user avatar
  • 6,251
0 votes

Check if all non-zero elements in a matrix are connected

Uiua, 7 bytes ≤1⧻⊜∞.± Try it! ...
nyxbird's user avatar
  • 475
5 votes

Ways to paint a backbone on a tree

Charcoal, 149 135 bytes ≔Eθ⊞O⌕AS1κθ≔EθEθυηFθFEθλF§θκ«≔E⁻§θκ⟦κλ⟧§§ημκζ≔⟦⟧εW⁻ζεF№ζ⌊μ⊞ε⌊μ§≔§ηκλε»≔ΦEθ⟦κι⟧⁼²L⊟ιζFζ«≔⁻§θ§ι⁰ιε¿εFε⊞ζ⁺⟦κ⟧ι⊞υE駧ηκκ»UMυ⌊⟦ι⮌ι⟧ILΦυ⁼κ⌕υι Try ...
Neil's user avatar
  • 174k
13 votes

Ways to paint a backbone on a tree

Python, 238 bytes -7 bytes thanks to @Neil -8 bytes thanks to @emanresu A -5 bytes thanks to @xnor +72 bytes due to a very serious bug (pointed out by @Jonathan Allan); bugged version ...
Mukundan314's user avatar
  • 12.7k
2 votes

Ways to paint a backbone on a tree

Python3, 643 bytes ...
Ajax1234's user avatar
  • 7,441
0 votes

Island Golf #2: The Eccentric Hermits

Python, 198 bytes ...
Mukundan314's user avatar
  • 12.7k

Top 50 recent answers are included