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
 
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‭

Question number king-of-the-hill python
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 2y 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‭

71%
+3 −0
Challenges Reverse an ASCII string

Turing Machine.io, 363 bytes 0 0 0 0 -1 8 0 0 8 4 0 1 9 0 0 9 -1 0 0 1 0 0 1 0 0 1 9 0 1 1 1 0 1 9 0 2 1 2 0 1 9 0 3 1 0 0 -1 2 0 2 2 2 0 -1 3 0 0 3 0 0 -1 3 0 1 3 1 0 -1 3 0 2 3 2 0 1 4...

posted 4y ago by 22t‭

Answer
71%
+3 −0
Challenges Create an Alphabet Diamond

Jelly, 13 bytes ØAUƤz⁶ZUŒBŒḄY Try it online! How it works ØAUƤz⁶ZUŒBŒḄY - Main link. Takes no arguments ØA - Yield the uppercase alphabet Ƥ - Over each prefix: U ...

posted 4y ago by caird coinheringaahing‭  ·  edited 4y ago by caird coinheringaahing‭

Answer
71%
+3 −0
Challenges Evaluation order of an APL n-train

Jelly, 8 bytes ṖUs2UṭµF Try it online! -1 byte thanks to caird coinheringaahing (Also posted on Stack Exchange by myself) ṖUs2UṭµF Main Link Ṗ pop (remove last element; for numbe...

posted 4y ago by hyper-neutrino‭  ·  edited 4y ago by hyper-neutrino‭

Answer
71%
+3 −0
Challenges Evaluation order of an APL n-train

BQN, 8 bytesSBCS ⍒↕+2|⊢+↕ Run online! The solution itself is an 8-train, so its evaluation order is given by the sequence 7 5 6 3 4 1 2 0: first the rightmost ↕, then the ⊢, then the + between...

posted 4y ago by Marshall Lochbaum‭

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

Jelly, 3 bytes Ḷ߀ Try it online!

posted 4y ago by xigoi‭

Answer
71%
+3 −0
Meta Can I repost a challenge that I posted elsewhere here?

I have this challenge in Code Golf and I wonder if I can repost it here for more users to come, and also continue making these since I actually like them. Can I post this challenge to Codidact?

1 answer  ·  posted 4y ago by General Sebast1an‭  ·  edited 3y ago by Trilarion‭

Question support asking
71%
+3 −0
Challenges Are they abundant, deficient or perfect?

Jelly, 6 bytes _ÆṣṠ)Ġ Try it online! In order of abundant, perfect, deficient. _ÆṣṠ)Ġ Main Link ) For each from 1 to N _ Subtract Æṣ The proper divisor sum Ṡ Sign ...

posted 4y ago by hyper-neutrino‭  ·  edited 4y ago by hyper-neutrino‭

Answer
71%
+3 −0
Challenges Are they abundant, deficient or perfect?

BQN, 21 bytesSBCS (¬·×-+´·/0=↕⊸|)¨⊸⊔1+↕ Run online! Mostly one big train used to find the appropriate group for each number, to be used with Group (⊔). The combining functions in a train norma...

posted 4y ago by Marshall Lochbaum‭

Answer
71%
+3 −0
Challenges Create an Alphabet Diamond

Vyxal C, 8 bytes kA¦ømƛøm Try it Online! Explanation: kA # Push the alphabet ¦ # Prefixes øm # Palindromize list without duplicating middle ƛ # For each: ...

posted 4y ago by Aaron Miller‭

Answer
71%
+3 −0
Challenges Word Set Square

Japt -R, 16 15 14 bytes pÔ¬Ëú°EDùEÃÆpÔ Try it pÔ¬Ëú°EDùEÃÆpÔ :Implicit input of string p :Append Ô : Reverse ¬ :Split Ë ...

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

Answer
71%
+3 −0
Q&A Tips for [fastest-code] in Python

What tips are there in fastest code, or what I like to call code speeding, challenges in Python?

1 answer  ·  posted 4y ago by General Sebast1an‭  ·  last activity 2y ago by trichoplax‭

Question tips fastest-code
71%
+3 −0
71%
+3 −0
Sandbox Add two negabinary integers [FINALIZED]

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

71%
+3 −0
Challenges Create a Sudoku

Haskell, 50 bytes [take 9$drop i$cycle[1..9]|i<-[0,3,6,1,4,7,2,5,8]] Try it online!

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

Answer
71%
+3 −0
Meta Leaderboards are live

Seems to be an issue with the ordering (across languages) when "Group by language" is set. When I first load the page, they are ordered with the most recent post first. If I then uncheck "Group by ...

posted 4y ago by Marshall Lochbaum‭  ·  edited 4y ago by Marshall Lochbaum‭

Answer