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.5k posts
 
66%
+2 −0
Challenges Longest Increasing Subsequence

JavaScript (Node.js), 70 56 bytes f=([a,...b],c=f)=>1/a?Math.max(f(b,c),[a]>c&&1+f(b,a)):0 Try it online!

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

Answer
71%
+3 −0
Challenges Longest Increasing Subsequence

Given an array of numbers, output the length of the longest increasing (not necessarily contiguous) subsequence. It is guaranteed that there are no duplicates in the array. For example, if the inpu...

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

Question code-golf
50%
+0 −0
Challenges Shape of an array

Raku, 32 bytes {map +*,($_,*[0]...^9 ge*.gist)} Try it online! It's difficult to tell the difference between one element arrays and just plain numbers, since Raku translates between the two....

posted 3y ago by Jo King‭

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

C (gcc), 108 bytes *h,i;main(){for(;i++<100;){char s[]="%dFizzBuzz ",b=i%5;h=s+2;printf(s+(i%3?b?*h=32,0:6:b?h[1]=32,2:2),i);}} Godbolt. Works on clang too. Contains some serious abuse of al...

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

Answer
66%
+2 −0
Challenges "Hello, World!"

RoadLang, 59 bytes wagwan my slime man say"Hello, World!" chat wit u later fam My first RoadLang answer! And probably the first one on this site! Removing any of the words says "Aight the ...

posted 3y ago by Razetime‭

Answer
60%
+1 −0
Sandbox The Camelot Wheel [FINALIZED]

posted 3y ago by Quintec‭  ·  edited 11mo ago by trichoplax‭

75%
+4 −0
Meta What is the Q&A category for?

It's for non-challenge questions. These might be general tips questions, questions about how to golf specific pieces of code, common golf paradigms, etc. Here are some examples from SE that might ...

posted 3y ago by Quintec‭

Answer
75%
+4 −0
Meta What is the Q&A category for?

It's for questions about golfing and challenges. From the comments underneath the original proposal: @Moshi from the discussion in 19th Byte it sounded like the community could have questions a...

posted 3y ago by Mithical‭

Answer
40%
+0 −1
Meta What is the Q&A category for?

I was thinking the same thing. Maybe instead there should be one category for code golf and leave the main Q&A is for other types of challenges and puzzles?

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Meta What is the Q&A category for?

We seem to ask a lot of questions in Meta, which sort of defeats the purpose of the Q&A category. Is it intended for subjective quesitons (of which this site gets few), or requests for tips, or...

3 answers  ·  posted 3y ago by Corsaka‭  ·  last activity 3y ago by Quintec‭

Question discussion
60%
+1 −0
Challenges Bytes to Segfault

C (compliant), 19 bytes (gcc -std=c18 -pedantic-errors) int main(){main();} Godbolt

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

Answer
60%
+1 −0
Challenges Shape of an array

Python 2, 37 bytes l=input() while 1:print len(l);l=l[0] Try it online! This makes heavy use of programs being allowed to terminate with error, which I assume is allowed by default because ...

posted 3y ago by xnor‭

Answer
71%
+3 −0
Challenges Weave Strings Together

Haskell, 40 bytes f((h:t):r)=h:f(r++[t]) f(_:r)=f r f _=[] Try it online!

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

Answer
50%
+0 −0
Challenges Shape of an array

JavaScript (Node.js), 36 bytes f=a=>a?.map?[a.length,...f(a[0])]:[] Try it online!

posted 3y ago by Hakerh400‭

Answer
66%
+2 −0
Challenges Weave Strings Together

JavaScript (Node.js), 53 bytes f=(a,b=[],c=a.map(([a,...c])=>(b+=[a],c)))=>b&&b+f(c) Try it online!

posted 3y ago by Hakerh400‭

Answer
50%
+0 −0
Challenges Shape of an array

JavaScript (Node.js), 39 bytes Returns dimensions from innermost to outermost f=a=>a?.pop?f(a[0]).concat(a.length):[] JavaScript (Node.js), 41 bytes Returns dimensions from outermost to ...

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

Answer
71%
+3 −0
Challenges Weave Strings Together

Japt -P, 7 2 bytes Õc Takes input as character arrays. -5 bytes thanks to @Shaggy Try it

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

Answer
80%
+6 −0
Challenges Shape of an array

Given a non-ragged array (an array where all sub-arrays at a particular level have the same length) of non-negative integers, answer its shape, that is, the length along every dimension. You may as...

6 answers  ·  posted 3y ago by Adám‭  ·  last activity 2y ago by south‭

Question code-golf
80%
+6 −0
Meta Link with Stack Exchange

The profile link is only relevant for claiming imported content at the moment. When we import content from SE, linking profiles allows us to give users the option of claiming their posts - thus lic...

posted 3y ago by Mithical‭

Answer
71%
+3 −0
Meta Link with Stack Exchange

When editing my profile, I see: Link with Stack Exchange You can't link a Stack Exchange account to your account on this site because there is no associated Stack Exchange site from which to ...

1 answer  ·  posted 3y ago by Adám‭  ·  last activity 3y ago by Mithical‭

Question feature-request
77%
+5 −0
Challenges Weave Strings Together

APL (Dyalog Unicode), 10 bytes Full program. Prompts for list of strings from stdin. 0~⍨,⍉↑0,¨⎕ Try it online! ⎕ prompt for list of strings 0,¨ prepend a zero to each ↑ convert to orthogona...

posted 3y ago by Adám‭  ·  edited 3y ago by Adám‭

Answer
86%
+11 −0
Challenges Weave Strings Together

Given a list of strings(and optionally, their length) as input, weave the strings together. Intro Your goal is to mimic the WV operator in Pip. Take a list of strings and alternate between their ...

13 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by radarek‭

Question code-golf string
71%
+3 −0
Challenges "Hello, World!"

C++ (gcc), 43 bytes #import<ios> main(){puts("Hello, World!");} Try it online!

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

Answer
66%
+2 −0
Challenges Bytes to Segfault

JavaScript (Node.js), 35 32 25 bytes -7 bytes thanks to @celtschk‭ with(process)kill(pid,11) Try it online!

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

Answer