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 Plain black webpage

HTML, 25 bytes <style>*{background:#000} Not really sure if this is a legal solution, but technically you can open it in your browser...

posted 10mo ago by Moshi‭

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

ESCR - not a golfing answer This isn't really an answer to the question, and it's not an attempt at golfing. However, it shows a cute trick for solving this problem that falls out of the way the ...

posted 10mo ago by Olin Lathrop‭  ·  edited 10mo ago by Olin Lathrop‭

Answer
60%
+1 −0
Challenges Is it stuck in a counting loop?

Pyth, 8 bytes qu/Red._ Try it online! A list is in a loop if and only if it is the first list seen twice as f is applied repeatedly. qu/Red._ u Apply the following function, ...

posted 9mo ago by isaacg‭

Answer
60%
+1 −0
Challenges Can I follow this recipe?

Pyth, 15 bytes !f.A-VtTsM._T.p Try it online! Outputs True if no valid recipe exists, False if one does. If truthy/falsy outputs are allowed, the ! can be removed, to just output all valid per...

posted 9mo ago by isaacg‭

Answer
60%
+1 −0
Challenges Plain black webpage

HTML, 28 Bytes <HTML style=background:#000> #000 is shorter than black and quote marks are officially required but browsers figure it out.

posted 10mo ago by manassehkatz‭

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

Pyth, 25 23 bytes @f-1aM.:jT;2u+Gs>2GyQU2 Try it online! First, we generate the Fibonacci numbers: u+Gs>2GyQU2 U2 range(2), the list [0, 1] u Apply the follow...

posted 9mo ago by isaacg‭  ·  edited 9mo ago by isaacg‭

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

C, 59 byte h(n){return n&4?n&2?5:n&1?1e3:n&8?50:500:n&2?100:n&1?1:10;} Old version, 60 byte: h(n){return n&4?n&2?5:n&1?1000:n&8?50:500:n&2?100:n&amp...

posted 1y ago by H_H‭  ·  edited 1y ago by H_H‭

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 3mo ago by Shaggy‭

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 2mo ago by Shaggy‭

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 2mo ago by lyxal‭

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 2mo ago by Lundin‭  ·  edited 2mo ago by Lundin‭

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 2mo ago by celtschk‭  ·  edited 2mo ago by celtschk‭

Answer
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 2mo ago by celtschk‭

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

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

Article code-golf math
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 3mo ago by Shaggy‭

Answer
60%
+1 −0
Meta Category migration and the sandbox

This has probably been discussed before but I couldn't find any posts about it. I think we should re-make the sandbox category in the following way: Votes in the sandbox category should not c...

2 answers  ·  posted 1mo ago by Lundin‭  ·  last activity 1mo ago by trichoplax‭

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 2mo ago by Shaggy‭

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 3mo ago by Shaggy‭

Answer
60%
+1 −0
Meta Category migration and the sandbox

Start afresh but keep history When migrating to the Challenges category, there are several aspects of the post that could be included or discarded: Comments Edit history Votes Comments Th...

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

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 4mo ago by Monica Cellio‭

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 1mo ago by Shaggy‭  ·  edited 1mo ago by Shaggy‭

Answer
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 28d ago by Europe2048‭

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

posted 4mo ago by trichoplax‭  ·  edited 1mo ago by trichoplax‭

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

Vyxal, 4 bytes Expects a string. O2%∑ Try it here! Explanation O2%∑ O ord 2% modulo 2 ∑ sum

posted 2mo ago by Europe2048‭

Answer
60%
+1 −0
Meta Preferred length limit for Code Golf posts

65,535 The database field can already handle up to 65,535 (216 - 1) characters. Same for all post types and categories I don't see a need for different limits for questions and answers, or for d...

posted 2mo ago by trichoplax‭

Answer