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
 
75%
+4 −0
Challenges It's Hip to be Square

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

posted 3y ago by snail_‭

Answer
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 3y ago by Moshi‭  ·  edited 3y ago by Moshi‭

Answer
75%
+4 −0
Sandbox Compute the determinant

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

Article code-golf math
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 3y 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 3y ago by Shaggy‭  ·  edited 3y 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 3y ago by Adám‭

Answer
75%
+4 −0
Meta Should [code-golf-tips] be replaced with [tips] + [code-golf]?

Instead of the code-golf-tips tag, could we tag "Tips for golfing" questions with tips and code-golf instead? They can still be searched for, so I don't see a reason to make a special tag to repres...

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

Question discussion tags
71%
+3 −0
Meta Add detailed wikis and usage info on these tags

In this request (not really a feature-request but still tagged so anyway), I'd like to have detailed wikis on tags and maybe usage information on them too. Currently, these tags have usage info in...

1 answer  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by General Sebast1an‭

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 3y 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 3y 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 3y ago by Hakerh400‭

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 3y ago by Shaggy‭  ·  edited 3y ago by Shaggy‭

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 3y ago by Wezl‭

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

Haskell, 18 bytes n!g=foldl1 g[1..n] Try it online!

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Sandbox Word Set Square[FINALIZED]

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

71%
+3 −0
Challenges Ratio limits of fibonacci-like series

JavaScript (Node.js), 27 22 bytes -5 bytes thanks to Hakerh400‭ Direct computation f=n=>(n+(n*n+4)**.5)/2 $$\frac{n+\sqrt{n^2+4}}{2}$$ Try it online!

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

Answer
71%
+3 −0
Challenges Word Set Square

Haskell, 110 bytes f a=s>>=(#)$a++reverse a c@(a:b)!f=f c:b!f _!_=[] f#n=n!((n!).f) s(p:q)(d:e)(b:c)|e==c||e==[]=b|q==c=d|0<1=' ' Try it online!

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

Answer
71%
+3 −0
Challenges Word Set Square

V (vim), 23 bytes æw|PòlÄxòjVLkîyllv$r $Ð Try it online! Hexdump: 00000000: e677 7c50 f26c c478 f26a 564c 6bee 796c .w|P.l.x.jVLk.yl 00000010: 6c76 2472 2024 d0 lv$r ...

posted 3y ago by DJMcMayhem‭

Answer
71%
+3 −0
Meta Allow linking account with Code Golf Stack Exchange

Currently, the only purpose a link to a SE account serves is to associate imported content with your CD account. Since Code Golf doesn't have any imported content from SE, there's no option to link...

posted 3y ago by Mithical‭

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

Scala, 9 bytes _.reverse Try it in Scastie! Explanation: _.reverse _ //The function argument . //Call a method reverse //Reverse the string

posted 3y ago by user‭

Answer
71%
+3 −0
Challenges Word Set Square

Scala, 99 bytes s=>{val x=s+s.reverse s(0)+"\n"+x.tail.init.zipWithIndex.map{case(c,i)=>c+" "*i+c+"\n"}.mkString+x} Try it in Scastie!

posted 3y ago by user‭

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

PowerShell, 43 bytes param($s)(($s=$s|% t*y)|%{$s[--$q]})-join'' Try it online!

posted 3y ago by Wasif‭

Answer
71%
+3 −0
Challenges Cumulative Counts

Jelly, 4 bytes ¹Ƥċ" Try it online! " For each element of the input, ċ how many times does it occur in ¹Ƥ " the corresponding prefix of the input?

posted 3y ago by Unrelated String‭  ·  edited 3y ago by Unrelated String‭

Answer
71%
+3 −0
Challenges Cumulative Counts

APL (Dyalog Unicode), 11 bytes (SBCS) 1 1∘⍉+\∘.=⍨ Try it online! This was a fun APL exercise. Working on figuring out how to get it down to 7 bytes.

posted 3y ago by hyper-neutrino‭

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

Exploiting layout Make it thin Newlines and indentation are expensive, so remove them when possible. Some examples: &v factorial v< > >:1-:| v* < >$>\:| ...

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

Answer