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
 
71%
+3 −0
Sandbox The Ludic Numbers[FINALIZED]

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

71%
+3 −0
Challenges The Ludic Numbers

Haskell, 51 49 bytes -2 bytes thanks to Wheat Wizard 1:g[2..] g(a:b)=a:g[d|(c,d)<-zip[1..]b,c`mod`a>0] Try it online!

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

Answer
71%
+3 −0
Challenges Reverse your quine

Haskell, 78 bytes main=putStr$reverse$a++show a where a="main=putStr$reverse$a++show a where a=" Try it online!

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Challenges Reverse your quine

JavaScript (Node.js), 60 bytes f=a=>console.log(`)(f;${[...f+``].reverse``.join``}=f`);f() Try it online!

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Q&A Tips for golfing in Python

Use the unpacking * instead of list If you want to convert an iterator/generator into a list, use the * operator instead of using the list function, e.g. Instead of list(iterable) Use [*iter...

posted 3y ago by Moshi‭

Answer
71%
+3 −0
71%
+3 −0
Challenges Convert integer to English

Given a non-negative integer up to $999\,999\,999$, write it in English. The input number can be in any form other than English (though you'll typically want to use the native integer type of your...

3 answers  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Moshi‭

71%
+3 −0
Sandbox Find good coalitions [FINALIZED]

posted 3y ago by celtschk‭  ·  edited 1y ago by trichoplax‭

71%
+3 −0
71%
+3 −0
Challenges Encode and decode floating point integers

Imagine you have only one byte (8 bits) to store a value, but need to store values from $0$ to $4032$. Impossible, until you are also told that an error of 1/64 of the exact value does not matter. ...

2 answers  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by General Sebast1an‭

Question code-golf number
71%
+3 −0
Challenges Convert integer to English

Sclipting, (UTF-16) 454 406 bytes Yes. 塊匱❸곴김分倘標⓶❹演긆륩닆롩닶밎併鈉不終⓷곴김剩❶갾밈分倘⓷標⓷❺演긇끨닷녳눖멤併鈉⓶不終갾밈剩❶뉀分倘⓷標⓷❺演긆둵닦끲뉖밄併鈉⓶不終뉀剩⓶글會⓶倘❷長是긆굮뉂밀⓶終긇끨늗긠뉦뭵댢걦늖눠댶땸긇꽥덦녮긆녩뉶될닦땮뉐❷굀瀰是❶銅긂건덶녮融壹坼❸겠分掘덇밉⓸겠剩倘껐⓶⓹逆⓸終終긆뭮뉒건덶묠덆둲뉖넠뉦뭵댢걦늗뉥긇꽩...

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

Answer
71%
+3 −0
Challenges "Hello, World!"

C# (.NET Core), 60 bytes class a{static void Main(){Console.Write("Hello, World!");}} Try it online!

posted 3y ago by skatana‭

Answer
71%
+3 −0
Challenges Find good coalitions

As you might know, there were elections in Germany, and now the parties have to form a government coalition. Let's help them with it! A good coalition has the strict majority of seats (that is, mo...

2 answers  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Moshi‭

Question code-golf
71%
+3 −0
Challenges Find good coalitions

Haskell, 141 bytes import Control.Monad f a=map(map fst)$filter(\c->let{g=map snd;e=sum(g a)`div`2;f=g c;d=sum f}in d>e&&all((<=e).(d-))f)$filterM(pure[1<0..])a Try it ...

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Challenges Run-length encode a byte sequence

Run-length encoding is a simple compression technique which compresses sequences of repeating identical bytes. The encoding rules for this task are as follows: Any sequence of $n$ identical bytes...

2 answers  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Moshi‭

Question code-golf encoding
71%
+3 −0
Challenges Operation "Find The Operator"

Python 3, 106 91 bytes Saved 15 bytes thanks to Moshi in the comments lambda a,b,c:[p for p in"+ - * // % **".split()if(p in'+-**'or b)and eval(f"{a}{p}{b}")==c] Try it online!

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

Answer
71%
+3 −0
Q&A Tips for golfing in Java

Use higher versions of Java Seriously, it's crazy what sort of features have been added since Java 8. I hardly recognize the language anymore... Examples: Constructing Lists Before, you had to ...

posted 3y ago by Quintec‭

Answer
71%
+3 −0
Sandbox Golf golf challenge [FINALIZED]

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

71%
+3 −0
Challenges Find the IP address class

Japt, 26 25 bytes ;Bg4mUqL În10,2 ùT8 qT Îl Try it Long and unwieldy, I'm rusty. Looks at the first 0 in the bitstring of the first octet.

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

Answer
71%
+3 −0
Sandbox Keyword golfing [FINALIZED]

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

71%
+3 −0
Challenges Find the IP address class

JavaScript, 43 bytes s=>"ABCDE"[Math.log2(s.slice(0,3)^255|8)^7] Try it online! Taking the first 3 characters of the string is always enough to include the first octet, while including at...

posted 3y ago by m90‭

Answer
71%
+3 −0
71%
+3 −0
Challenges Determine whether an integer is square-free

Scala, 41 bytes x=>2 to x forall(d=>x%d+math.sqrt(d)%1>0) Try it online! Pretty straightforward

posted 3y ago by user‭

Answer
71%
+3 −0
Challenges Determine whether an integer is square-free

Python3, 39 bytes lambda n:all(n%i**2for i in range(2,n)) Try it online! Makes a list comprehension from the numbers 2 through n of the remainder of the square, and then checks whether the lis...

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

Answer
71%
+3 −0
Challenges Determine whether an integer is square-free

Vyxal, 4 bytes K∆²a Try it Online! Outputs 0 for square-free, 1 for not. K # Factors ∆² # Is perfect square a # Any true?

posted 3y ago by A username‭

Answer