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
1.5k posts
 
60%
+1 −0
Challenges Backspace an array

JavaScript (Node.js), 41 40 bytes Saved 1 byte thanks to Shaggy x=>x.map(e=>e?a.push(e):a.pop(),a=[])&&a Try it online! x => //x is the input x.map(e=> //For every...

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

Answer
60%
+1 −0
Sandbox Catch the fruit

posted 3y ago by Razetime‭

60%
+1 −0
Meta Should we import our old policy posts?

I haven't been involved enough in SE Code Golf to really count for much. But I do think we need to have policies stated somewhere. One advantage we have here is that once policies get reasonably fi...

posted 3y ago by manassehkatz‭

Answer
60%
+1 −0
Meta Sandbox-specific Tags

I think there should be a standard set of tabs to use in Sandbox to indicate that a post has been turned into a Challenge, and possibly for other Sandbox-specific status issues as well.

1 answer  ·  posted 3y ago by manassehkatz‭  ·  last activity 3y ago by Monica Cellio‭

Question feature-request
60%
+1 −0
60%
+1 −0
Sandbox Golf me a polygonal loader

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

60%
+1 −0
Challenges Tile pyramids on top of each other!

JavaScript (Node.js), 57 56 bytes f=(a,b='/\\')=>a--?''.padEnd(a)+b+` `+f(a,'/'+b+'\\'):'' Try it online!

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

Answer
60%
+1 −0
Challenges Tile pyramids on top of each other!

Canvas, 9 7 bytes H/×║∔}r Try it here! Explanation H/×║+}r H } push empty art and start a loop from 1..n /× repeat '/' i times ║ palindromize horizontally(no overlap) ...

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

Answer
60%
+1 −0
Challenges Tile pyramids on top of each other!

Python 2, 57 bytes a,x=1,input() exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x Prints it out line by line Try it online!

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

Answer
60%
+1 −0
Sandbox Point Game KOTH

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

60%
+1 −0
Challenges Shape of an array

Python 2, 37 bytes l=input() while 1:print len(l);l=l[0] Try it online! This makes heavy use of programs being allowed to terminate with error, which I assume is allowed by default because ...

posted 3y ago by xnor‭

Answer
60%
+1 −0
Challenges Bytes to Segfault

C (compliant), 19 bytes (gcc -std=c18 -pedantic-errors) int main(){main();} Godbolt

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

Answer
60%
+1 −0
Sandbox The Camelot Wheel [FINALIZED]

posted 3y ago by Quintec‭  ·  edited 11mo ago by trichoplax‭

60%
+1 −0
Challenges Longest Increasing Subsequence

Husk, 10 bytes L►LfΛo<0-Ṗ Try it online! Explanation L►LfΛo<0-Ṗ Ṗ power set of input f get elements which match the following: Λo - all pairwise difference...

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

Answer
60%
+1 −0
Meta What would this community like to see in a Codidact API?

I'd like to post king-of-the-hill contests that read code directly from answers Essentials This is the only feature I would need in order to start posting contests. The answer content for each...

posted 1y ago by trichoplax‭

Answer
60%
+1 −0
Challenges The holeyest base

Ruby, 63 bytes ->n{(2..16).max_by{|x|n.digits(x).sum{45088003.digits(3)[_1]}}} Attempt This Online!

posted 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges The holeyest base

Jelly, 20 bytes ³b‘ị“ḃṘ¤’b3¤S ⁴ḊÇÐṀḢ Try it online!

posted 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges 8 coexisting queens

Vyxal, 9 bytes ×»∇ḂẆ»f꘍§ Try it Online! Uses spaces for empty and asterisks for queen. Add a › at the end to replace spaces with zeros. ×»∇ḂẆ»f꘍§ »∇ḂẆ»f # 13572064 as a list of digits × ...

posted 1y ago by steffan153‭  ·  edited 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges The holeyest base

Vyxal, 19 18 bytes 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴ Try it Online! The link goes to a program which has every test case. -1 thanks to Steffan Explained (old) 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O 16Ḣ # Th...

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

Answer
60%
+1 −0
Challenges 8 coexisting queens

J, 20 bytes '01'{~#:2^2842 A.i.8 Attempt This Online! Non-tacit program that outputs implicitly in a REPL. Shoutout to Raul (Miller)#5220 in the APL farm discord for thinking of this cool idea...

posted 1y ago by south‭  ·  edited 1y ago by south‭

Answer
60%
+1 −0
Meta What would this community like to see in a Codidact API?

I've now posted on Codidact Meta How should a Codidact public API work? I'll still be taking into account any discussion here if you have Code Golf specific thoughts, but for general API discussio...

1 answer  ·  posted 1y ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

Question discussion
60%
+1 −0
Q&A Up to date JavaScript Try-It-Online

Try it online doesn't support the latest JavaScript features such as optional chaining or null coalescence, which are very useful character-saving operators. Is there another site like TIO, but whi...

1 answer  ·  posted 1y ago by Moshi‭  ·  last activity 1y ago by trichoplax‭

Question try-it-online
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 325 322 bytes -3 bytes thanks to steffan153‭! from base64 import* n=int.from_bytes(b85decode('8C^#Z9Uor=^}*nk`yLA}A<z=aTm_V+z!I{Y1+v7z89f>WmC>M4TN(sPp`fvySOeqafPpzk0!*=hK2{h9D...

posted 1y ago by Moshi‭  ·  edited 1y ago by Moshi‭

Answer
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 326 bytes print("fig gấc abiu açaí bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal ...

posted 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Vyxal, 244 bytes `↔ė ¹¢ Ṁṙ ṫ₁ λǎ ȧ₴ ¶Ŀ ¯¡ ɾ⟨ ²ǒ aǍ₄ b₴⟩ l℅₆ n꘍ƒ pƛṖ pṁ‹ p⋏µ p⇧Ż r⋏⅛ s⇧⁋ s⋎Ė ≈•꘍₈ ak↳⁼ …⋎꘍⇩ ₴ꜝza Ǎṁ…℅ ǍŀṪṄ •øĊ¯ ∞¨Ċ¯ ∧¡ǎŀ Ǎ§Ċ¯ ⟇⁺Ċ¯ ₃Ẏ꘍⁼ ṙ†ð‛ ṙ†Ṗ₃ ...

posted 1y ago by steffan153‭  ·  edited 1y ago by steffan153‭

Answer