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 »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
60%
+1 −0
Challenges Looping counter

Python 2, 26 bytes _=1 while 1:_*=10;print~-_ Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

Bash, 17 bytes echo x$1;./$0 x$1 Try it online! Thanks to celtschk‭ for spotting my mistake :)

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

Answer
60%
+1 −0
Challenges Looping counter

dc, 13 bytes [r1+pA*rdx]dx Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

><>, 10 bytes 1:naoa*1+! Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

Embed ESCR, about 32 characters depending on how you count loop append s "*" show s endloop The indentation is not required, but shown for clarity. Declaring the variable S is also not ...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
60%
+1 −0
Challenges Looping counter

JavaScript (Node.js), 31 bytes for(i='';;console.log(i+='*')); Try it online!

posted 3y ago by Moshi‭

Answer
60%
+1 −0
Challenges Looping counter

C (gcc), 47 bytes i,n;f(){for(i=n+++2;i--;)putchar(i?42:13);f();} Try it online!

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

Answer
60%
+1 −0
Challenges Keyword golfing

Lua 5.4.4, 147 bytes local function f()goto l::l::return end for _ in f do end if true and false then elseif""then else end repeat until""or not nil while""do break end Try it online! Check th...

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

Answer
60%
+1 −0
Challenges Write a Deadfish Interpreter

C (gcc), 98 bytes _=0;f(char*s){for(;*s;++s)_==256||_<0?_=0:1,*s=='i'?_++:*s=='d'?_--:*s=='s'?_*=_:printf("%d ",_);} Try it online!

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

Answer
60%
+1 −0
Challenges The Pell Numbers

J, 28 bytes [:}.@{.m&(+/ .*)&m=.2 1,:1 0 Try it online! Tacit matmul solve. x&u&y applies x to y n times.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Encode with ROT13.5

Vyxal, 16 bytes kakAkdW₌ṅƛL½Ǔ;ṅĿ Try it Online!

posted 2y ago by steffan153‭

Answer
60%
+1 −0
Challenges Knight safe squares

Rust, 236 184 166 142 bytes |i:u64|{let s=0x101010101010101;let(a,b,c,d)=(i&252*s,i&254*s,i&127*s,i&63*s);(i|a<<6|b<<15|c<<17|d<<10|d>>6|c>>15|b...

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

Answer
60%
+1 −0
Challenges Cumulative Counts

Haskell + hgl, 10 bytes mpn$ce~<gj Attempt This Online! Explanation mpn map across all non-empty prefixes of the input ... ce count the number of elements in each prefix equal to ... g...

posted 2y ago by WheatWizard‭

Answer
60%
+1 −0
Challenges Calculate the Z-array

JavaScript (Node.js), 86 bytes X=>{Y=[];for(i in X)Y[i]=0,X.slice(i).map((a,b)=>a-X[b]?i='':Y[i]++);return Y.slice``} Attempt This Online! Using fancy notation, the time complexity is $...

posted 2y ago by TheCodidacter, or rather ACodidacter‭  ·  edited 2y ago by TheCodidacter, or rather ACodidacter‭

Answer
60%
+1 −0
Challenges Build a replacement ball in regex.

Haskell + hgl, 30 bytes ic"|"<<tv(:".")><fl<ce '.'><eq Attempt This Online! Explanation This performs a cartesian product to get all possible ways to replace characters w...

posted 2y ago by WheatWizard‭

Answer
60%
+1 −0
Challenges Build a replacement ball in regex.

Vyxal, 62 bitsv2, ~8 bytes ẏḋ\.vȦ\|j Try it Online! Really 7.75 bytes, but leaderboard regex is a thing. Explained ẏḋ\.vȦ\|j ẏ # Range [0, len(X)) ḋ # n-length combinations...

posted 2y ago by lyxal‭  ·  edited 2y ago by lyxal‭

Answer
60%
+1 −0
Challenges Sort letters by height

C (gcc), 152 bytes r;e(c){r=c=='j'?5:strchr("bdfghklpqy",c)?4:c=='i'?3:c=='t'?2:1;}c;s;f(char*i,char*o){s?(e(*i),c=r,e(*o)):(qsort(i,strlen(i),s=1,f),puts(i));return r-c;} Try it online! Out...

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

Answer
60%
+1 −0
Challenges Just the vowels please

05AB1E, 3 bytes žÀà : implicit input žÀ : push "aeiouAEIOU" à : keep all elements of input that occur in "aeiouAEIOU" Try it online!

posted 2y ago by taoh‭  ·  edited 2y ago by taoh‭

Answer
60%
+1 −0
Challenges Can you give me half?

Golfscript, 8 6 bytes, 5 unique !).!(? Explanation: ! # negate , no value makes it 1 ) # increment -> 2 . # duplicate 2 ! # negate 2 = 0 ( # decrement -> -1 ? # exponentiate, 2^-1 =...

posted 2y ago by taoh‭  ·  edited 2y ago by taoh‭

Answer
60%
+1 −0
Sandbox Encode with ROT13.5 [FINALIZED]

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

60%
+1 −0
Sandbox Digit antitranspose [FINALIZED]

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

60%
+1 −0
Meta Codidact Fractional Byte Consensus

Over on the Code Golf StackExchange site, there is a meta consensus that answers can be scored in fractional bytes if there exists such an encoding method. So, to quote the linked consensus questi...

1 answer  ·  posted 2y ago by lyxal‭  ·  last activity 2y ago by WheatWizard‭

Question discussion
60%
+1 −0
Challenges Digit antitranspose

Python 3, 35 bytes lambda m:list(zip(*m[::-1]))[::-1] Try it online! The format is a list of tuples. The content of the tuples could be any type; in my tests I used single-digit strings bec...

posted 2y ago by celtschk‭  ·  edited 2y ago by celtschk‭

Answer
60%
+1 −0
Challenges Digit antitranspose

Japt, 2 bytes Input as a multi-line string ÕÔ Try it ÕÔ :Implicit input of string Õ :Transpose Ô :Reverse

posted 2y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Digit antitranspose

J, 8 char Solution: |:|.|."1 Test example: (i. 3 3) 0 1 2 3 4 5 6 7 8 |:|.|."1 (i. 3 3) 8 5 2 7 4 1 6 3 0 (i. 4 2) 0 1 2 3 4 5 6 7 |:|.|."1 (i. 4 2) 7 5 3 1 6 4 2...

posted 2y ago by torres‭

Answer