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
Challenges Golf me a polygonal loader

JavaScript (Browser), 670 bytes for(_="=1,w=):=0,w(=f(||(.join`w?q-w?q=-w(a,b=>A(L*5,a),g.innerText=N=L=D=T,I=,c,d)a-d?I,b(d,cd+1c,A=)I(a,(x,y)[...y,b(x)],[](U=_(Kf=({value:a})a==[a|]+[]&&a...

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

Answer
71%
+3 −0
Challenges Evaluate a single variable polynomial equation

Jelly, 1 byte ḅ Try it online! Essentially just Razetime's APL answer, except in that ḅ vectorizes rather than carrying out mixed base conversion--irrelevant if, as is the case here, the provi...

posted 4y ago by Unrelated String‭

Answer
71%
+3 −0
Challenges The Camelot Wheel

Python 3, 101, 98, 94 bytes First answer! lambda s:f"{(('FCGDAEB'.index(s[0])-~-ord(s[5])*('-'in s)-3*('i'in s)-6)%12)+1}"+'BA'['i'in s] Try it online! Readable version: def f(s): n="FCG...

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

Answer
71%
+3 −0
Challenges Tile pyramids on top of each other!

V (vim), 11 bytes ÀñY>HGpé/Á\ Try it online! Hexdump: 00000000: c380 fe58 c3b1 593e 4847 70c3 a92f c381 ...X..Y>HGp../.. 00000010: 5cc3 bfc3 \...

posted 4y ago by DJMcMayhem‭

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

LOLCODE, 37 bytes HAI 1 VISIBLE "Hello, World!" KTHXBYE Try it online!

posted 4y ago by Lundin‭

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

05AB1E, 7 bytes ”Ÿ™,‚ï! Try it online!

posted 4y ago by Makonede‭

Answer
71%
+3 −0
71%
+3 −0
Challenges Towering Cistercian Representation

SE Sandbox Link, Codidact Sandbox Link Inspired by this video. Given a positive integer, draw its Cistercian representation as ascii art. The Challenge Cistercian numerals are a decimal-based...

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

Question code-golf ascii-art
71%
+3 −0
Sandbox Draw a line over ASCII

posted 4y ago by dzaima‭  ·  edited 3y ago by dzaima‭

71%
+3 −0
Challenges 1, 2, Fizz, 4, Buzz!

Shakespeare Programming Language, 11232 bytes My last attempt was nearing the 20000 byte zone, because it didn't use the stack at all. a.Ajax,.Puck,.Ford,.Act I:.Scene I:.[Enter Ajax and Puck]Aja...

posted 4y ago by Corsaka‭

Answer
71%
+3 −0
Challenges The Camelot Wheel

Given a musical key, output its number and letter on the Camelot Wheel (shown below). Input A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with s...

2 answers  ·  posted 4y ago by Quintec‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf
71%
+3 −0
Challenges Reverse an ASCII string

Perl 5 -p, 10 bytes $_=reverse Try it online!

posted 4y ago by msh210‭  ·  edited 3y ago by General Sebast1an‭

Answer
71%
+3 −0
Challenges Length of a Sumac Sequence

C (gcc), 32 bytes f(a,b){return a>0?f(b,a-b)+1:0;} Try it online!

posted 4y ago by celtschk‭

Answer
71%
+3 −0
Sandbox Integer to Roman numeral

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

71%
+3 −0
Challenges Single digit Roman numeral

Given a single character, which is a valid Roman numeral, output its value. Values There are 7 valid single character Roman numerals, with the following values: Character Value I...

6 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 6mo ago by xrs‭

Question code-golf
71%
+3 −0
Challenges Digit Sum Integer Sequence (working title)

Haskell, 56 bytes f a=a:f(a+g(read.pure<$>show a)) g a=minimum a+maximum a Try it online!

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Challenges Repeat the characters

Haskell, 18 bytes (.replicate).(>>=) Try it online!

posted 3y ago by Hakerh400‭

Answer
71%
+3 −0
Challenges Repeat the characters

Ruby, 34 29 bytes ->s,n{s.chars.map{_1*n}*""} Try it online!

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

Answer
71%
+3 −0
Challenges Expand a polynomial

Challenge Given the roots of a polynomial (that is, the $x$ values where the polynomial evaluates to zero), as an array of real numbers, return the polynomial's coefficients. That is, given real ...

4 answers  ·  posted 3y ago by Moshi‭  ·  last activity 29d ago by Moshi‭

Question code-golf math
71%
+3 −0
Challenges Abbreviate everything

Challenge Make a program that takes input of a string and abbreviate it. All letters of an abbreviation are capitalized, so keep that in mind. Whitespace, numbers and non-English characters ar...

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

Question code-golf string
71%
+3 −0
Challenges Abbreviate everything

Python 3, 142 bytes def f(s): m=1;r="" for c in s.upper(): if'@'<c<'['or'-'==c:r+=c*m;m=0 if c in":; ":r+=c*(c!=' ');m=1 if c in".?!":r+=' ';m=1 return r Try it online!

posted 3y ago by celtschk‭

Answer
71%
+3 −0
Challenges Abbreviate everything

Haskell, 139 138 bytes import Data.Char f(a:b)|d a=toUpper a:f(dropWhile(\a->e a"-'"||d a)b)|e a":;"=a:c|e a".?!"=' ':c|0<1=c where c=f b;d=isLetter;e=elem f a=a Try it online!

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

Answer
71%
+3 −0
Challenges Collatz conjecture; Count the tries to reach $1$

Haskell, 43 39 bytes f 1=0 f n=1+f([div n 2,n*3+1]!!mod n 2) Try it online!

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

Answer
71%
+3 −0
Challenges Collatz conjecture; Count the tries to reach $1$

Python 3, 48 42 39 bytes Saved 6 bytes thanks to Hakerh400‭ in the comments Saved another 3 bytes thanks to user in the comments f=lambda n:n-1and-~f([n//2,3*n+1][n%2]) Try it online!

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

Answer
71%
+3 −0
Challenges Collatz conjecture; Count the tries to reach $1$

Sclipting, (UTF-16) 44 34 32 bytes 貶要❶갠剩❷隔❸增갰乘嗎終并長貶 Because comparing with 1 is expensive (requires copying and decrementing), we instead use a modified version of the Collatz sequence - namely...

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

Answer