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
 
60%
+1 −0
Challenges Hex ​​​detector

Japt -d, 8 bytes °*U*3¥NÉ Try it 9 bytes NøT±1wU*6 Try it

posted 10mo ago by Shaggy‭  ·  edited 8mo ago by Shaggy‭

Answer
60%
+1 −0
Challenges The 50 substrings that validate any string of Roman numerals

Bash, 205 bytes for s in C{C{CC,D,M},DC,MC} {CM,DC,D}{D,M} I{C,D,I{II,V,X},L,M,VI,X{C,I,L,V,X}} L{C,D,L,M,XC,XL} MMMM V{C,D,IV,IX,L,M,V,X} X{C{C,D,L,M,X},D,LX,M,X{C,L,XX}} do echo $1|grep -q $s...

posted 10mo ago by celtschk‭

Answer
60%
+1 −0
Meta Short ​​​titles

A limit of 1 character for Challenges and Sandbox Now that Monica has pointed out that adjusting the minimum is already possible per category, I propose that we leave the minimum at 15 characters ...

posted 10mo ago by trichoplax‭  ·  edited 10mo ago by trichoplax‭

Answer
60%
+1 −0
Challenges Hex ​​​detector

Dyalog APL, 10 bytes ⊢∊1+\⍤,6×⍳ Port of lyxal's Vyxal answer. Explanation ⊢∊1+\⍤,6×⍳­⁡​‎‎⁡⁠⁡‏⁠‎⁡⁠⁢‏‏​⁡⁠⁡‌⁢​‎⁠⁠‎⁡⁠⁤‏⁠‎⁡⁠⁢⁡‏⁠‎⁡⁠⁢⁢‏⁠‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁣‏⁠‎⁡⁠⁢⁣‏‏​⁡⁠⁡‌...

posted 10mo ago by RubenVerg‭

Answer
60%
+1 −0
Meta How do we handle standardizing things?

Something I would like to see here are explicit and specific constraints on how submitted solutions are expected to accept the challenge input and output their solutions (if output is the goal). F...

posted 11mo ago by Hackysack‭  ·  edited 11mo ago by Hackysack‭

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

AWK, 28 26 21 bytes $0=$1~2&&$2~2?5:$1+$2 Try it online!

posted 11mo ago by xrs‭  ·  edited 5mo ago by xrs‭

Answer
60%
+1 −0
Challenges The 50 substrings that validate any string of Roman numerals

Rust, 258 254 bytes Saved four bytes thanks to trichoplax. fn v(s:&str)->&str{for b in "CCCC CCD CCM CDC CMC CMD CMM DCD DCM DD DM IC ID IIII IIV IIX IL IM IVI I...

posted 10mo ago by Sylvester‭  ·  edited 10mo ago by Sylvester‭

Answer
60%
+1 −0
Challenges Single digit Roman numeral

AWK, 80 bytes {split("I V X L C D M 1 5 10 50 100 500 1000",d);for(;d[++i]!=$1;);print d[i+7]} Try it online! A quick map function. 'split' breaks the string into array elements. Find the stri...

posted 11mo ago by xrs‭  ·  edited 11mo ago by xrs‭

Answer
60%
+1 −0
Challenges "Hello, World!"

C (gcc), 30 bytes main(){puts("Hello, World!");} Try it online! This is using GNU C extensions. GNU C allows main() over int main(), ss well as using puts without including stdio.h.

posted 11mo ago by Lundin‭

Answer
60%
+1 −0
Challenges Looping counter

K (oK), 9 bytes {x#0}'!10 Try it online! !10 / pass range your arbitrary number .' / treat those as a list, and evaluate each separately { } / main function...

posted 11mo ago by xrs‭  ·  edited 8mo ago by xrs‭

Answer
60%
+1 −0
Challenges Digit Sum Integer Sequence (working title)

AWK, 82 bytes {split($1,d,"");i=a=d[1];for(x in d){d[x]>a?a=d[x]:0;d[x]<i?i=d[x]:0}print a+i+$1} Try it online! Just pass your input, e.g.: echo "123" | awk '...'

posted 11mo ago by xrs‭  ·  edited 11mo ago by xrs‭

Answer
60%
+1 −0
Challenges Multiplicative perfection

JavaScript, 36 bytes n=>n==(g=d=>--d?(n%d?1:d)*g(d):1)(n) Try it online!

posted 7mo ago by Shaggy‭

Answer
60%
+1 −0
Sandbox Plain ​​spheres

posted 9mo ago by trichoplax‭  ·  edited 6mo ago by trichoplax‭

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

UiuaSBCS # Experimental!, 8 bytes ++↧∩=₂,, Try it here! Explanation ++↧∩=₂,, ,, Make a copy of the two arguments ∩=₂ Are they both equal to 2? ↧ Minimum ++ Add the...

posted 6mo ago by Europe2048‭

Answer
60%
+1 −0
Challenges Find the IP address class

Japt, 15 bytes Port of m90's JS solution, until I manage to come up with something shorter. ;Bg7^Mm8|#ÿ^3îU Try it

posted 6mo ago by Shaggy‭  ·  edited 6mo ago by Shaggy‭

Answer
60%
+1 −0
Meta Leaderboard sorting bug

Some time has passed, and the leaderboard there now looks like this: It appears that the entry showing as undefined is confusing the leaderboard. I don't know what governs the placement of that...

posted 9mo ago by Monica Cellio‭

Answer
60%
+1 −0
Challenges Substring factor

Japt v1.4.5, 7 bytes â¬d!øUs Try it â¬d!øUs :Implicit input of integer U ⬠:Divisors, excluding itself d :Are any !ø : Contained in Us : The s...

posted 8mo ago by Shaggy‭

Answer
60%
+1 −0
Challenges Substring factor

JavaScript, 42 bytes s=>(g=n=>--n&&s.includes(s%n?g:n)|g(n))(s) Try it online!

posted 8mo ago by Shaggy‭

Answer
60%
+1 −0
Challenges Fibonacci without consecutive digits

Japt, 17 bytes 0-indexed gU²o!gM fÈì äa eÉ Try it 15 bytes 1-indexed @µXì äa eÉ}f!gM Try it

posted 8mo ago by Shaggy‭

Answer
60%
+1 −0
Sandbox Product of polynomials modulo 2 in integer representation

posted 6mo ago by celtschk‭  ·  edited 6mo ago by celtschk‭

Article code-golf math
60%
+1 −0
Challenges Multiplicative perfection

C (gcc), 53 bytes This uses the shortcut behaviour of logical or (||) to only multiply if it is a divisor; the loop end condition then makes sure it's a proper divisor. i=1;p=1;f(n){for(;i<n...

posted 6mo ago by celtschk‭

Answer
60%
+1 −0
Challenges How many odd digits?

C (gcc), 37 bytes This takes an integer as input. It uses the fact that the last digit is odd if and only if the number is odd, and that integer division by 10 removes the last digit. Testing if ...

posted 6mo ago by celtschk‭  ·  edited 6mo ago by celtschk‭

Answer
60%
+1 −0
Challenges How many odd digits?

C (gcc), 41 bytes r;o(char*s){for(;*s;r+=*s++&1);return r;} Try it online! This is under the assumption that in a function solution, input has to be passed as parameter and output throug...

posted 6mo ago by Lundin‭  ·  edited 6mo ago by Lundin‭

Answer
60%
+1 −0
Challenges Multiplicative perfection

Vyxal, 4 bytes KΠ√= Try it Online! Another 4 byter, but uses the definition of A007422 that a number returns true if product(divisors) == input ** 2. Explained KΠ√=­⁡​‎‎⁡⁠⁤‏‏​⁡⁠⁡‌⁢​‎‎⁡...

posted 6mo ago by lyxal‭

Answer
60%
+1 −0
Challenges Multiplicative perfection

Japt v1.4.5, 4 bytes ¶â¬× Try it ¶â¬× :Implicit input of integer ¶ :Is equal to ⬠:Proper divisors × :Reduced by multiplication

posted 7mo ago by Shaggy‭

Answer