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
 
60%
+1 −0
Challenges Compute the determinant

J, 5 bytes -/ .* Try it online! For the determinant conjunction, the space before u is necessary, so there is no shaving a byte here. If you want to read more about this conjunction, check out...

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Make $2 + 2 = 5$

Ruby, 19 bytes ->a,b{a|b==2?5:a+b} Try it online!

posted 3y ago by sampersand‭

Answer
60%
+1 −0
Challenges Make $2 + 2 = 5$

J, 7 9 bytes ++2&=@+.~ Try it online! Dyadic fork that executes with the form (x + y) + (2 = x +. y). Thanks to torres for pointing out the obvious flaw.

posted 3y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Roll n fair dice

J, 10 7 bytes +/>:?#/ Try it online! +/>:?#/ #/ : Inserts dyadic # into an array n m Creates n copies of m ? : Roll from 0..y >: : Increment +/ : S...

posted 3y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Reverse an ASCII string

J, 2 bytes |. Try it online!

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Operation "Find The Operator"

Ruby, 57 bytes ->a,b,c{%w[+ - * / % **].select{c==a.send(_1,b)rescue p}} Attempt This Online!

posted 3y ago by radarek‭

Answer
60%
+1 −0
Challenges Partial Sums of Harmonic Series

J, 23 bytes >:@]^:(>1#.1%1+i.)^:_&1 Try it online! >:@]^:(...)^:_&1 Increments from 1 while >1#.1%1+i. the harmonic sum up to that is less than the input

posted 3y ago by Bubbler‭

Answer
60%
+1 −0
Sandbox Word wrap a string

posted 3y ago by celtschk‭

Article code-golf string
60%
+1 −0
Challenges Make my value binary

J, 2 bytes #: Try it online! Antibase two

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Make my value binary

dc, 4 bytes 2o?p Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Make my value binary

Embed ESCR, 16 characters [int n "base 2"] The INT function produces the text representation of an integer with lots of formatting options. The only non-default option needed was to set the numb...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
60%
+1 −0
Challenges Determine whether an integer is square-free

J, 17 bytes {{*./y|~*:2+i.y}} Try it online! A direct definition closest to Razetime's infuriatingly good train solution. Outputs a non-zero number for true and 0 for false.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Small integer swapping

J, 3 bytes ,|. Try it online! This hook y f (g y) appends y with its reverse.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Keyword golfing

BQN, 107 bytes A↩C←A⇐¯π{_𝕣_:@;/⊏𝕩.y?𝕗‿∊𝕊⟨𝕤,⍷⟩𝕏𝕎𝔽𝕨𝔾𝕘}∞˙⌜˘¨´˝`(•Js⎉⊔⎊⌽⌾⍉⚇«∘»·∧○∨⍋⍒↑↓≍∾˜⥊⋈↕⊢⍟⊣¬!|≡≢/≥⟜≠=⊸≥⊐⊘⊒◶⊑><⌊⌈√⁼⋆+-×÷)⋄# BQN doesn't have keywords but primitive symbols are reserved. It's ...

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

Answer
60%
+1 −0
Challenges Can you give me half?

MATL, 3 distinct, 3 total lH/ Try it online! Computes 1/2. Reserved labels for constants can be found here

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Determine whether an integer is square-free

MATL, 6 bytes YftuX= Try it online! Same method as Moshi. YftuX= Yf - factor with implicit input t - duplicate u - unique X= - isequal

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Looping counter

Python 3, 28 bytes _="" while 1:_+="*";print(_) Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

Python 2, 26 bytes _=1 while 1:_*=10;print~-_ Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

Bash, 17 bytes echo x$1;./$0 x$1 Try it online! Thanks to celtschk‭ for spotting my mistake :)

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

Answer
60%
+1 −0
Challenges Looping counter

dc, 13 bytes [r1+pA*rdx]dx Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

><>, 10 bytes 1:naoa*1+! Try it online!

posted 3y ago by orthoplex‭

Answer
60%
+1 −0
Challenges Looping counter

Embed ESCR, about 32 characters depending on how you count loop append s "*" show s endloop The indentation is not required, but shown for clarity. Declaring the variable S is also not ...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
60%
+1 −0
Challenges Looping counter

JavaScript (Node.js), 31 bytes for(i='';;console.log(i+='*')); Try it online!

posted 3y ago by Moshi‭

Answer
60%
+1 −0
Challenges Looping counter

C (gcc), 47 bytes i,n;f(){for(i=n+++2;i--;)putchar(i?42:13);f();} Try it online!

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

Answer
60%
+1 −0
Challenges Keyword golfing

Lua 5.4.4, 147 bytes local function f()goto l::l::return end for _ in f do end if true and false then elseif""then else end repeat until""or not nil while""do break end Try it online! Check th...

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

Answer