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.6k posts
 
71%
+3 −0
Challenges Weave Strings Together

Japt -P, 7 2 bytes Õc Takes input as character arrays. -5 bytes thanks to @Shaggy Try it

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

Answer
71%
+3 −0
Challenges Weave Strings Together

Haskell, 40 bytes f((h:t):r)=h:f(r++[t]) f(_:r)=f r f _=[] Try it online!

posted 4y ago by xnor‭  ·  edited 4y ago by xnor‭

Answer
71%
+3 −0
Challenges 1, 2, Fizz, 4, Buzz!

C (gcc), 108 bytes *h,i;main(){for(;i++<100;){char s[]="%dFizzBuzz ",b=i%5;h=s+2;printf(s+(i%3?b?*h=32,0:6:b?h[1]=32,2:2),i);}} Godbolt. Works on clang too. Contains some serious abuse of al...

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

Answer
71%
+3 −0
Challenges Longest Increasing Subsequence

Given an array of numbers, output the length of the longest increasing (not necessarily contiguous) subsequence. It is guaranteed that there are no duplicates in the array. For example, if the inpu...

4 answers  ·  posted 4y ago by Quintec‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf
71%
+3 −0
Challenges Reverse an ASCII string

Laser, 9 bytes c⌜ps \U# My own language's showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters. ...

posted 4y ago by Quintec‭  ·  edited 4y ago by manassehkatz‭

Answer
71%
+3 −0
Challenges Reverse an ASCII string

Ruby, 14 bytes ->s{s.reverse} Try it online! a straightforward builtin.

posted 4y ago by Razetime‭

Answer
71%
+3 −0
Q&A Befunge Golfing Tips

Golfing numbers Numbers above 15 and below zero take more than one byte to create. Here's a table of numbers up to 100 (Not including negatives yet) Table for '98 NOTE: For numbers that are al...

posted 4y ago by moony‭  ·  edited 4y ago by Moshi‭

Answer
71%
+3 −0
71%
+3 −0
Challenges A number adder, not a death adder

Japt, 4 bytes P1 is: +"+U Try it Which outputs P2, where N1 is the input from P1: N1+U Try it

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

Answer
71%
+3 −0
Challenges A number adder, not a death adder

Vyxal Ṫ, 3 bytes ?\? Try it Online! Outputs N1?, which when run with the same flag as P1, will add the two inputs together. Try it Online!

posted 3y ago by Aaron Miller‭

Answer
71%
+3 −0
Challenges Make my number a set

Japt, 3 bytes ÆßX Try it online! (don't mind the -Q This is Shaggy's solution. ÆßX Æ Make a range [0, input) and map each number X: ß Run this program again on X Japt, 11 8 bytes ...

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

Answer
71%
+3 −0
Meta Default Rules: Loopholes

Empty answers to questions requiring an interpreter In particular, "simulating" a machine on this very machine by accepting the initial state as the simulation's initial state and returning t...

posted 3y ago by AndrewTheCodegolfer‭

Answer
71%
+3 −0
Challenges Caesar shift cipher

JavaScript (Node.js), 67 60 bytes o=>r=>Buffer(o).map(c=>c%32<26&c>64?(c%32+r)%26+c-c%32:c)+'' Try it online! o=>r=> // Define a function taking o an...

posted 3y ago by A username‭  ·  edited 3y ago by A username‭

Answer
71%
+3 −0
Meta How free is "free" for cops and robbers?

Free as in usable on a free platform "free" meaning there must be a downloadable interpreter available for the language which can run the program with the required features, on an online/offline s...

posted 3y ago by Razetime‭

Answer
71%
+3 −0
Q&A Tips for golfing in C

C is a language I use most apart from Python and as someone who likes code golf challenges, what tips are there to golf in C?

4 answers  ·  posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf tips
71%
+3 −0
Challenges Three Number Monte

The Rules In this game, each round, every player faces off against every other player in a round robin format. In each match, players pick 3 positive integers that sum to 360. Let's say player 1 p...

2 answers  ·  posted 3y ago by Quintec‭  ·  last activity 3y ago by Moshi‭

71%
+3 −0
Challenges Three Number Monte

MoshiBot from numpy.polynomial import Polynomial def MoshiBot(data, history): if len(history) < 10: return [180, 180, 0] lastmin = min(history[-1]) lastmid = sorted(history[-1])[1] ...

posted 3y ago by Moshi‭

Answer
71%
+3 −0
Challenges Guess the language! (Robbers' Thread)

COPS THREAD A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact. You are a robber. Your goal is to find answers on this link which haven't been cracked an...

12 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 3y ago by m90‭

Question cops-and-robbers
71%
+3 −0
Sandbox Are All Elements Equal?[FINALIZED]

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

71%
+3 −0
Challenges It's Hip to be Square

Japt, 6 3 bytes Cut in half thanks to Shaggy! ¬v1 Try it online! Golfed thanks to Shaggy's interpreter auto-golf feature. ¬v1 ¬ //Square root v1 //Is that an integer?

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

Answer
71%
+3 −0
Challenges It's Hip to be Square

Prolog (SWI), 42 bytes R-S:-S is R*R;R<S,M is R+1,M-S. f(S):-0-S. Try it online!

posted 3y ago by user‭

Answer
71%
+3 −0
Challenges Guess the language! (Cops' Thread)

C or C++ (gcc) 220 bytes, cracked by Razetime %: %: define cops(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) if(not false and k%:%:f%:%:d%:%:l(& (not true) <:%:i%:j%:k%:l" "%:m" "%:n%:o%:p%:...

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

Answer
71%
+3 −0
Challenges Diagonalized alphabet

Python 2, 61 bytes i=12;exec"print'YWUSQOMKIGECABDFHJLNPRTVXZ'[i:14+i];i-=1;"*13 Try it online! I tried to do it without writing the full list 'YWUSQOMKIGECABDFHJLNPRTVXZ' but couldn't get l...

posted 3y ago by bastolski‭

Answer
71%
+3 −0
Sandbox Obligatory factorial challenge

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