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 Lowercase, but not just the letters

APL (Dyalog APL), 42 bytes {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵} Attempt This Online! In APL, base encoding(⊤) returns a matrix, so setting the lowercase bit is very easy with 1@2, setting the entire secon...

posted 2y ago by Razetime‭  ·  edited 2y ago by Razetime‭

Answer
60%
+1 −0
Challenges Mediocre pop count

APL (Dyalog APL), 61 bytes {⍵/⍨~(⊢∊⌊/,⌈/)+⌿0 1↓2⊥⍣¯1⊢0,⎕UCS⍵} Attempt This Online! APL's style of filter works very well here, since we can check for the max and min elements here: (⊢∊⌊/,⌈/) ...

posted 2y ago by Razetime‭

Answer
60%
+1 −0
Challenges Mediocre pop count

Japt, 13 bytes ÆüÈc¤ñÃé ¤¬øX Try it ÆüÈc¤ñÃé ¤¬øX :Implicit input of string U Æ :Filter each character, X by ü : Group & sort U by È ...

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

Answer
60%
+1 −0
Challenges Just the vowels please

JavaScript, 27 24 bytes Input as a string, output as a character array or empty array. s=>s.split(/[^aeiou]*/i) Try it online! Thanks to Moshi for pointing out the * I was missing that w...

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

Answer
60%
+1 −0
Challenges Just the vowels please

Japt v2.0a0, 3 bytes o\v Try it o\v :Implicit input of string o :Keep only \v :RegEx /[aeiou]/gi

posted 2y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Just the vowels please

Sclipting, (UTF-16) 22 bytes 놵멡뉖땯더굅낔뭕뇐虛移 Nothing complicated, just replaces the regex [^aeiouAEIOU] with the empty string.

posted 2y ago by Moshi‭

Answer
60%
+1 −0
Challenges Balanced quinary quasiquine

Given an integer $N$ in balanced quinary, output the first $N$ characters of your source code if $N$ is positive, or the last $-N$ characters of your source code if $N$ is negative. Terminology ...

1 answer  ·  posted 2y ago by trichoplax‭  ·  edited 2y ago by trichoplax‭

Question code-golf quine base
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Japt, 233 bytes `ÜÊ Ò˜ Í a×G ¯¯o ÖÚb ¯ØÚ ז »Ûá ÝÁ„ Á²g fig ¤¶n ÓI„ lªo §Ö‡ ÚAo Ú-n Û u Ûo nÂ) šem ÇÓy pe‡ pi¦ Îñˆ ΰn Ѧk Ѧl sŽb Ɏ ȃp Èîp ÈlŸ ‘y °ÛG Ù i abiu alڈ app¤ ‡aza bael b„„a ¼ÚAe ÞÃ...

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

Answer
57%
+2 −1
Challenges Make $2 + 2 = 5$

C (gcc), 41 bytes f(x,y){int r=x*y;return r&&r==x+y?5:x+y;} Attempt This Online!

posted 3y ago by Zakk‭  ·  edited 1y ago by Zakk‭

Answer
57%
+2 −1
Challenges Give the fool's fibonacci sequence

Recently I asked for tips on improving some code-golf of mine. The code was supposed to output every third value of the Fibonacci sequence starting with 2: 2,8,34,144,610,2584,10946,46368,196418,...

2 answers  ·  posted 1y ago by WheatWizard‭  ·  last activity 4d ago by CrSb0001‭

Question code-golf sequence open-ended-function fibonacci
57%
+2 −1
Challenges Fibonacci without consecutive digits

Output the Nth number in the list of Fibonacci numbers that have no consecutive digits. Input A non-negative integer (if you treat the Fibonacci numbers as zero-indexed) or a positive integer (...

4 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 7mo ago by Andrew Ray‭

Question code-golf math number sequence fibonacci
57%
+2 −1
Meta Default Rules: Code Golf I/O

Functions may return bools via the presence/absence of an error Crashing to mean false and not crashing to return true. Another branch of the exit code answer.

posted 3y ago by AndrewTheCodegolfer‭

Answer
57%
+2 −1
Meta Default Rules: Code Golf I/O

Programs/functions may use the presence/absence of output as a bool

posted 3y ago by AndrewTheCodegolfer‭

Answer
57%
+2 −1
Meta Answering challenges with languages newer than the challenge

Languages made specifically for a challenge after it was published This is the general problem with allowing languages newer than the challenge. This is already considered a standard loophole, and...

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

Answer
50%
+0 −0
Meta Leaderboards are live

Libraries are removed when "merge variants" is on. For example, this answer written in C (clang) uses a library called BMPL, so its header is C (clang) + BMPL. While there's nothing wrong with usin...

posted 4y ago by user‭

Answer
50%
+0 −0
Challenges Add two negabinary integers

Ruby, 75 bytes ->t,u{g=->a{a.reduce{-2*_1+_2}};('%b'%(g[t]+g[u]+(y=43690)^y)).to_i.digits} Try it online! Uses latest ruby features, so tio link will look different. Takes two digit a...

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

Answer
50%
+0 −0
Challenges The Pell Numbers

JavaScript, 26 bytes Outputs the nth term, 0-indexed. f=n=>n<2?n:f(--n)*2+f(--n) Try it online! JavaScript, 49 bytes Outputs the first n terms as a comma delimited string. f=n=&gt...

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

Answer
50%
+0 −0
Challenges "Hello, World!"

Lua, 20 bytes print"Hello, World!" Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Java, 37 Bytes v->System.out.print("Hello, World!");

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

Answer
50%
+0 −0
Challenges "Hello, World!"

Charcoal, 13 bytes Hello, World! Try it online! I'm surprised no one even used Charcoal in the challenge. Guess I'll take it.

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Bash, 21 Bytes print "Hello, World!"

posted 3y ago by deleted user  ·  edited 3y ago by deleted user

Answer
50%
+0 −0
Challenges "Hello, World!"

Pyth, 14 bytes "Hello, World! Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

!@#$%^&*()_+, 17 bytes ^dlroW ,olleH(@) Try it online! Might learn this sometime but I found this.

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Lean, 64 bytes def hello_world:io unit:=put_str"Hello, World!"#eval hello_world Try it online!

posted 3y ago by Kevin M. Mansour‭

Answer