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
 
71%
+3 −0
Challenges When The Ternary Is Balance

JavaScript (Node.js), 47 40 50 49 bytes -1 (possibly -3) bytes thanks to Shaggy! f=(n,s='0')=>n?f(n/3+n%3/2|0,'')+"+-0+-"[n%3+2]:s Try it online! A basic recursive solution.

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

Answer
71%
+3 −0
Challenges When The Ternary Is Balance

Haskell, 78 77 bytes (g[0]!) g a=mapM(\_->[-1..1])a++g(0:a) (a:b)!c|foldl1((+).(*3))a==c=a|0<1=b!c Try it online!

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

Answer
71%
+3 −0
Challenges Stairs? Stairs! Stairs.

Python 3, 64 bytes def f(n): for i in range(n):print((' '*(n-i)+'_/'+'##'*i)[3:]) Try it online!

posted 3y ago by Moshi‭

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

Combine conditionals Python has its fair share of comparison operators and can actually be used in a single conditional. For example: x == 2 and y == 2 can be: x==y==2 Used on Make $2 + 2 ...

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

Answer
71%
+3 −0
Challenges "Hello, {name}!"

Japt, 10 bytes `HÁM, {U}! Try it The backtick decompresses a compressed string, the {} is Japt's string interpolation and U is the first input variable.

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

Answer
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 4y 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 A number adder, not a death adder

Japt, 4 bytes P1 is: +"+U Try it Which outputs P2, where N1 is the input from P1: N1+U Try it

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

Answer
71%
+3 −0
Challenges A number adder, not a death adder

Vyxal Ṫ, 3 bytes ?\? Try it Online! Outputs N1?, which when run with the same flag as P1, will add the two inputs together. Try it Online!

posted 4y ago by Aaron Miller‭

Answer
71%
+3 −0
Challenges Make my number a set

Japt, 3 bytes ÆßX Try it online! (don't mind the -Q This is Shaggy's solution. ÆßX Æ Make a range [0, input) and map each number X: ß Run this program again on X Japt, 11 8 bytes ...

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

Answer
71%
+3 −0
Meta Default Rules: Loopholes

Empty answers to questions requiring an interpreter In particular, "simulating" a machine on this very machine by accepting the initial state as the simulation's initial state and returning t...

posted 3y ago by AndrewTheCodegolfer‭

Answer
71%
+3 −0
Meta How free is "free" for cops and robbers?

Free as in usable on a free platform "free" meaning there must be a downloadable interpreter available for the language which can run the program with the required features, on an online/offline s...

posted 3y ago by Razetime‭

Answer
71%
+3 −0
Challenges Caesar shift cipher

Ruby, 56 bytes ->s,i{a=[*?a..?z].rotate(i)*"";s.tr "A-Za-z",a.upcase+a} Try it online! tr is wildly useful here. Builds the tr string manually and replaces only the alphabets.

posted 3y ago by Razetime‭

Answer