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
 
75%
+4 −0
Challenges "Hello, World!"

Perl 5 -E, 18 bytes say"Hello, World!"

posted 4y ago by msh210‭  ·  edited 4y ago by user‭

Answer
75%
+4 −0
Meta Do you want any special tag styling or requirements?

Codidact allows you to define three special types of tags: topic tags: these are treated as ordinary tags in all respects except that they're styled differently so they stand out. You can see...

1 answer  ·  posted 4y ago by Monica Cellio‭  ·  last activity 4y ago by Razetime‭

Question discussion
75%
+4 −0
Meta Sandbox-specific Tags

Another approach, suggested by ArtOfCode in chat, is to create a close reason for "graduated" sandbox posts. When defining a close reason you can require a URL (this is what's used for duplicates)...

posted 4y ago by Monica Cellio‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Raku, 19 bytes (*Z*(*X**0..*)).sum Try it online! Is it concerning that my solution is over 30% asterisks? Explanation ( ).sum # Get the sum of *Z*( ) # The inp...

posted 4y ago by Jo King‭  ·  edited 4y ago by Jo King‭

Answer
75%
+4 −0
Challenges Partial Sums of Harmonic Series

Stax, 9 bytes Ç≈f♠É↔X+ö Run and debug it Explanation(Unpacked): wii{um|+;< w iterate until a falsy result is reached: ii push iteration number i twice {um map r...

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Length of a Sumac Sequence

Python 3, 49 47 44 35 bytes a=lambda x,y:+(x>=0)and(1+a(y,x-y)) Try it online! -3 bytes thanks to @Hakerh400‭ -9 bytes thanks to @Jo King‭ Python 2, 50 bytes x,y=input() a=0 while...

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

Answer
75%
+4 −0
Challenges Length of a Sumac Sequence

Raku, 19 bytes {(|@_,*-*...0>*)-1} Try it online! { } # Anonymous code block ... # Create a sequence |@_ # Starting with the input ...

posted 4y ago by Jo King‭

Answer
75%
+7 −1
Meta Who should the temporary moderators be?

I nominate Jo King, as they were already voted as moderator by the community earlier. They have proven to be an active and trustworthy moderator, who is also a consistent contributor to the code g...

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Tile pyramids on top of each other!

The task Given a positive integer as input, output tiled pyramids of this height. How? Let's say the inputted integer was n. From there, we output n lines of output, each having: A decreasing...

9 answers  ·  posted 4y ago by Dion‭  ·  last activity 4y ago by emanresu A‭

Question code-golf ascii-art
75%
+4 −0
Challenges 1, 2, Fizz, 4, Buzz!

JavaScript (Node.js), 64 bytes for(n=0;101>++n;)console.log([['Fizz'][n%3]]+[['Buzz'][n%5]]||n) Try it online!

posted 4y ago by Hakerh400‭

Answer
75%
+4 −0
Meta What are the rules of programming language compliance?

Regarding because the vast majority of all programs that were posted & highly up-voted there won't even compile on the most basic, compliant compiler for that language. Code Golf allows f...

posted 4y ago by Quintec‭

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

goruby, 1 byte f Okay, so that's a bit unfair. 😂 The definition of f from golf_prelude.rb (which is what goruby embeds) is quite golfy in itself: def f(m = 100) 1.upto(m){|n|puts'FizzBuzz ...

posted 4y ago by C. K. Young‭  ·  edited 4y ago by C. K. Young‭

Answer
75%
+4 −0
Challenges Reverse an ASCII string

Japt, 1 byte w Uh... yeah. Probably similar solutions for many other golf langs. Try it

posted 4y ago by Quintec‭

Answer
75%
+4 −0
Challenges Reverse an ASCII string

C (gcc), 62 bytes main(){char b[99],*p=strchr(gets(b),0);for(;p-->b;)putch(*p);} This relies on the usual gcc extension abuse. It assumes that max user input is 98 characters + null term, si...

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

Answer
75%
+4 −0
Challenges Golf a FRACTRAN interpreter

Brachylog, 16 bytes g₂;.z∋zbᵗ×ᵐ/ℤ↰|w Try it online! This is a function submission, which inputs n from the left and A from the right (as a list of two-element lists). Output is to standard out...

posted 4y ago by ais523‭

Answer
75%
+4 −0
Challenges Are All Elements Equal?

Japt, 3 bytes e¡g Try it e¡g :Implicit input of array U e :Is equal to ¡ :Map U g : First element of U

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

Answer
75%
+4 −0
Challenges Are All Elements Equal?

APL (Dyalog Unicode), 3 bytes ⍋≡⍒ Try it online! ⍋ computes the permutation vector that would sort the argument into ascending order ⍒ computes the permutation vector that would sort the ar...

posted 4y ago by Adám‭

Answer
75%
+4 −0
Sandbox Compute the determinant

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

Article code-golf math
75%
+4 −0
Challenges Coat of Many Colours

JavaScript (Node.js), 153 147 bytes -6 bytes thanks to Shaggy! a=>a.sort((x,y)=>g(x)-g(y),g=x=>"y gree br sc bla oc pe rub ol v f li go ch m cre c s ro a l ru g pu w p o b".split` `.find...

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

Answer
75%
+4 −0
Challenges It's Hip to be Square

Ruby, 16 bytes ->n{n**0.5%1==0} Try it online!

posted 4y ago by snail_‭

Answer
71%
+3 −0
Challenges Generate Lewis Caroll's Jabberwocky

Japt, 610 606 bytes Don't think there's anything more that can be done with it than this. 933î`'T°s ߍ¦g, „d e sҐy ‘vƒ Did gyœ „d g‹½e ˆ e °¼; A¥ Úßy ØÀ e ޒgovƒ, A˜ e Ú  ÎÈs ŒtgŸ¼.0"BeØ ...

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

Answer
71%
+3 −0
Challenges Are All Elements Equal?

Rockstar, 76 bytes Takes individual integers as input. listen to f let n be f o's1 while n let o be o and n is f listen to n say o Try it (Code and input will need to be added manually...

posted 4y ago by Shaggy‭

Answer
71%
+3 −0
Challenges Are All Elements Equal?

Python 3, 20 bytes lambda l:len({*l})<2 Try it online!

posted 4y ago by m90‭

Answer
71%
+3 −0
Challenges Are All Elements Equal?

Haskell, 16 bytes f(a:b)=all(==a)b Try it online!

posted 4y ago by Hakerh400‭

Answer
71%
+3 −0
Challenges Reduce over the range [1..n]

Ruby, 17 bytes ->{_2.reduce(_1)} Takes function (Proc) followed by Array. 32 bytes without inject or reduce ->f,(a,*r){r.map{|n|a=f[a,n]};a}

posted 4y ago by Wezl‭

Answer