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 »

Posts by Shaggy‭

120 posts
66%
+2 −0
Challenges Display a Progress Bar

Japt, 18 bytes "[{/V*50 ç| ú-50}] Try it

posted 11d ago by Shaggy‭

Answer
66%
+2 −0
Challenges Source with the whole alphabet in order of appearance

Japt, 26 bytes aBcDeFgHiJkLmNoPqRsTuVwXyZ Try it Trivial Solution, 26 bytes ABCDEFGHIJKLMNOPQRSTUVWXYZ Try it Explanations In the first solution each lowercase letter is a method that ge...

posted 1mo ago by Shaggy‭  ·  edited 1mo ago by Shaggy‭

Answer
66%
+2 −0
Challenges Efficient censorship

Japt -h, 7 bytes à ñÊkøV Try it à ñÊkøV :Implicit input of strings U=X & V=Y à :Powerset of U ñ :Sort by Ê : Length k :Remove elements that...

posted 1y ago by Shaggy‭

Answer
66%
+2 −0
Challenges Sort letters by height

Japt, 23 16 15 13 bytes Lexicographical sort using the custom alphabet tipbdghkflyqj. I/O as characters arrays, sorts in ascending order. n`“pbdghkf§qj Try it

posted 2y ago by Shaggy‭  ·  edited 1y ago by Shaggy‭

Answer
66%
+2 −0
Q&A Up to date JavaScript Try-It-Online

There is a new project called Attempt This Online intended as an alternative to TIO. It's pretty nascent so doesn't yet support the same volume of languages as TIO and the only version of JavaScrip...

posted 2y ago by Shaggy‭  ·  edited 2y ago by trichoplax‭

Answer
60%
+1 −0
Challenges Guess the language! (Robbers' Thread)

Cracks Mark Girrafe's answer: PicoLisp A sneaky search of TIO's GitHub org revealed this one ;) (prinl "Cops and Robbers")(bye) Try it online!

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges 99 Shortened Bottles of Beer

JavaScript (V8), 185 bytes for(c=99;c;)print((f=(s=` on the wall`)=>`${c||99} bottle${~-c?`s`:``} of beer`+s)()+`, ${f``}. ${--c?`Take one down and pass it around`:`Go to the store and buy s...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Small integer swapping

Japt, 3 bytes I/O as an array. cUé Try it cUé :Implicit input of array U c :Concatenate Ué : U rotated right once

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Getting perfect squares, differently

JavaScript (V8), 28 bytes for(x=y=0;;++y)print(x+=++y) Try it online!

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Getting perfect squares, differently

Japt, 9 bytes No infinite lists in Japt so we'll have to go with a recursive solution. ßOpTµJJµ2 Test it ßOpTµJJµ2 ß :Recursive call with (irrelevant) argument Op : ...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Guess the language! (Cops' Thread)

Jelly, cracked by m90 13 bytes Should be pretty simple - I'm running out of ideas; one of the downsides of only golfing in 2 languages! “¿×⁶ṆḶN{N=ȷṾ» Try it online!

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Guess the language! (Cops' Thread)

brainfuck, cracked by Aaron Miller, 243 bytes void main(x,y)->{ printf=io.write(z=x-y); printf("+++++[++++>---<]>.+[--->+<]>+++.+.+++.+[---->+<]>+++.[->+++<]&...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges 99 Shortened Bottles of Beer

Japt, 117 116 115 bytes Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks trick from ETHProductions' original version. Includes 2 trailing newlines. ´LÇ...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Longest Increasing Subsequence

Japt -h, 12 bytes à kÈäÎdÄÃmÊñ Try it à kÈäÎdÄÃmÊñ :Implicit input of array à :Combinations k :Remove elements that return true È :When pass...

posted 4y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Guess the language! (Robbers' Thread)

Cracks Kevin M. Mansour‭'s answer: Erlang Searched for languages that use fwrite, no joy. Searched for io:fwrite, got it instantly main([])-> io:fwrite("Cops and Robbers"). Try it onli...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges "Hello, World!"

Rockstar, 19 bytes say "Hello, World!" Try it here (Code will need to be pasted in)

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges The Pell Numbers

Japt, 11 9 bytes Outputs the first n terms. Change the h to g to get the nth 0-indexed term. ÈÑ+ZÔÅÎ}h Try it ÈÑ+ZÔÅÎ}h :Implicit input of integer U È :Function taking an int...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Add two negabinary integers

Japt, 8 bytes Input as an array of negabinary digit arrays, output as a negabinary digit array. xì2n)ì2n Try it or run all test cases (headers & footers convert to & from digit arrays)...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Shuffle a subset of a list

Japt, 17 bytes ô@VøYÃíUgV öx)c f Try it Japt, 17 bytes ô@VøYÃíUgV öx)c f Try it ô@VøYÃíUgV öx)c f :Implicit input of arrays U=integers & V=indices ô :Split U ...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Partial Sums of Harmonic Series

JavaScript, 29 bytes f=(n,x=0)=>n>0?f(n-1/++x,x):x Try it online!

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Obligatory Quine Challenge

Japt, 9 bytes All credit to ETH on this one. 9îQi"9îQi Test it 9î :Repeat the following to length 9 Q : Quotation mark i"9îQi : Prepend "9îQi" And, for th...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Word Count Tool

Japt v2.0a0, 19 18 17 bytes I need more caffeine! Takes input as an array of lines. Output is a reversed array. [Uc¸¬U¬Ucq\s f]ml Try it - includes all test cases, header splits string on new...

posted 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Solve Goldbach's Conjecture

Japt, 13 bytes o ï æ@¶Xx*Xej Try it o ï æ@¶Xx*Xej :Implicit input of integer U o :Range [0,U) ï :Cartesian product æ :First pair X that r...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Create an Alphabet Diamond

Japt -R, 11 bytes ;Bå+ mê ê û Test it ;Bå+ mê ê û ;B :Uppercase alphabet å+ :Cumulatively reduce by concatenation m :Map ê : Palindro...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Evaluation order of an APL n-train

Japt, 10 bytes o ÅÔò cÔiU Try it o ÅÔò cÔiU :Implicit input of integer U o :Range [0,U) Å :Slice off the first element Ô :Reverse ò ...

posted 3y ago by Shaggy‭

Answer