New answers tagged

3 votes

Draw this fractal generated by applying Newton's method to cosh(x) - 1

JavaScript (ES6), 259 248 241 bytes ...
user avatar
  • 145k
0 votes

Print a Cantor Set

Rust, 243 bytes ...
user avatar
  • 993
1 vote

Draw this fractal generated by applying Newton's method to cosh(x) - 1

Wolfram Language (Mathematica), 128 bytes ...
user avatar
  • 34.9k
12 votes

Draw this fractal generated by applying Newton's method to cosh(x) - 1

Desmos, 394 368 350 346 bytes -26 bytes thanks to @aiden-chow -18 bytes thanks to flexabrotnt#1409 ...
user avatar
5 votes

Draw this fractal generated by applying Newton's method to cosh(x) - 1

Pyxplot 0.8.4, 190 188 bytes ...
user avatar
  • 10.5k
2 votes

10 PRINT CHR$(205.5+RND(1)); : GOTO 10 in PHP (or anything else, for that matter)

Python 3, 59 bytes Using only 1 line (in the spirit of the original 10 PRINT): from random import*;exec("while 1:print(end=choice('\/'))")
user avatar
7 votes

Draw this fractal generated by applying Newton's method to cosh(x) - 1

Rust + Num ASCII Art - 420 413 bytes -6 bytes thanks to @LF ...
user avatar
  • 993
7 votes

Draw this fractal generated by applying Newton's method to cosh(x) - 1

Python + Pygame, 410 392 bytes (Example Submission) -16 bytes thanks to wizzwizz4 and others ...
user avatar
  • 993
0 votes

Collect data on mushroom forests

Charcoal, 36 bytes WS⊞υιIΦEEθ⌕⭆υ§λκ=|∧⊕ι⊕⊘L⊟⪪…§υικ ¬﹪κ² Try it online! Link is to verbose version of code. Takes input as a list of newline-terminated strings. ...
user avatar
  • 145k
1 vote

Collect data on mushroom forests

Vyxal, 18 bytes C∷ƛĠv¦ƛṘ=*;f;∑y_½⌈ Try it Online! Port of Jelly.
user avatar
  • 6,460
2 votes

Collect data on mushroom forests

Haskell, 161 160 bytes -1 bytes thanks to @Unrelated String ...
user avatar
  • 2,212
3 votes

Collect data on mushroom forests

Retina, 39 bytes ^ ¶ (=*)=\1 $1!$1 {*.\Cm`^!|\G== m`^.. Try it online! Explanation ^, : ...
user avatar
  • 6,366
2 votes

Collect data on mushroom forests

05AB1E, 21 bytes '=QεγεƶÐÅsQ*}˜}øOιн;î Port of @UnrelatedString's Jelly answer, since it's shorter than any monstrosity I was attempting.. Input as a (right-padded)...
user avatar
4 votes

Collect data on mushroom forests

Jelly, 23 20 16 bytes OḂŒgÄ=U×ƊF€Sm2HĊ Try it online! -3 thanks to Jonathan Allan, also opening up another -1 (×=¥UFƊ€ -> <...
user avatar
6 votes

Collect data on mushroom forests

Python, 125 bytes import re def f(s): o=[0]*len(s[0]) for l in s: for m in re.finditer("=+",l):o[sum(m.span())//4]=len(m[0])//4+1 return o Attempt This Online! Bad, terrible, no good. ...
user avatar
  • 21.4k
0 votes

Is this string a square?

Pip, 11 bytes Y0MMa^ny=Zy Takes a multiline string (with no trailing newline) as a command-line argument. Try It Online! Explanation ...
user avatar
  • 32.6k
3 votes

Is this string a square?

Jelly, 4 bytes Ỵ¬zƑ Try it online! Input via command-line argument. The input must be given with no trailing newline (otherwise the program sees a blank line at ...
0 votes

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Factor + grouping.extras, 38 bytes [ head-clump dup reverse rest append ] Try it online! ...
user avatar
  • 10.2k
2 votes

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Vyxal j, 2 bytes ¦∞ Try it Online!
user avatar
  • 6,460
2 votes

Square root of ASCII art

Vyxal, 40 32 bytes ẏṘ\\$꘍øm↵:IǏfL:£Nvȯ$Z¥?hL⇧\_*꘍p⁋ Try it Online! or verify all test cases. -8 bytes from porting 05AB1E
user avatar
  • 6,460
1 vote

Print this diamond

Vyxal C, 7 bytes 9ɾKvṅʁ∞ Try it Online!
user avatar
  • 6,460
2 votes

Generate Loopy puzzles

Python3, 1004 bytes: ...
user avatar
  • 3,046
1 vote

Knit me an ASCII-Sock

C (gcc), 185 bytes ...
user avatar
  • 121
4 votes

Knit me an ASCII-Sock

Vyxal, 54 bytes 1.*(\v*,)½(n-\v*₴n:d+\>*,)½½ʁ(½\v*?T\>*Jnd\>*J:⅛,)¾(¼, Boy oh boy, this is my new favorite answer now. The satisfaction when I got it down ...
user avatar
  • 4,423
1 vote

Display a clock face

Vyxal Cm, 32 bytes 6d6(12n-»§⟩»niǎnS꘍J₁SṘmni⌊¶*)_6W Try it Online! Bubblegum, 52 bytes ...
user avatar
  • 6,460
2 votes

ASCII art uncompression from a base-n number

Vyxal, 1 byte τ Try it Online! 05AB1E, 3 bytes ÅвJ Try it online!
user avatar
  • 6,460
7 votes

Scribble Pad for Nerds

BQN, 79 77 71 67 58 53 51 bytes Saved 5 bytes thanks to att ' '+(¬⊸-↑↑⟜1)∘⋈˜∘¬⟜-∘≠{𝕨(𝕨∨⌽)´-𝕩}4(⊢×○×-)2/8|-⟜2⊸⋈¨ Try it at BQN online Explanation New approach! <...
user avatar
  • 32.6k
1 vote

Scribble Pad for Nerds

Perl 5 + -pl043F, 63 bytes $_=". "x@F.s/./(<#{DA,A,,B,BD,{B,,A}DD}>)[$&]x2/ger;s/\w/.[$&/g Try it online! ...
user avatar
  • 22.2k
1 vote

Scribble Pad for Nerds

Python 3, 125 bytes ...
user avatar
  • 18.4k
1 vote

Scribble Pad for Nerds

C (gcc): 218 210 bytes Edit: Thanks to ceilingcat for shortening the code to 210 bytes. ...
user avatar
8 votes

Scribble Pad for Nerds

Ruby, 106 bytes ->d{m=2*x=y=d.size*2;c=[] [-5,*d].map{|k|2.times{(c[y+=k==6?0:k%7<=>2]||=[0]*m)[x+=k<1?0:4<=>k]=1}};c-[p]} Try it online! ...
user avatar
10 votes

Scribble Pad for Nerds

Charcoal, 9 bytes FA✳ι##‖↘# Try it online! Link is to verbose version of code. Explanation: FA Loop over the directions. ...
user avatar
  • 145k
8 votes

Scribble Pad for Nerds

Jelly,  25  22 bytes Saved three bytes using the allowance of excess whitespace (this also fixed a bug that meant an input with only left and/or right movements would have printed incorrectly since no ...
user avatar
13 votes

Scribble Pad for Nerds

Vyxal, 4 bytes ×3ø^ Try it Online! 05AB1E, 3 bytes 3$Λ Try it online!
user avatar
  • 6,460

Top 50 recent answers are included