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 The Camelot Wheel

APL (Dyalog Unicode), 110 67 bytes {(⍕((f⊖⍪'AEBFCGDAEBFD'),r⌽12↑¯6↑5⍴'-')⍳2↑⍵),⎕a⌷⍨1+0≠f←¯3+r←3×'i'∊⍵} -43 bytes from dzaima. Requires input exactly as shown in the diagram. A bit fiddly with...

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

Answer
60%
+1 −0
Sandbox The Pell Numbers[FINALIZED]

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

60%
+1 −0
Meta Microcontroller-involving challenges and the rules.

For this to work, I think we need to rule out all start-up code (the C runtime) but also the register maps. So I think answers should be a void main (void){ ... } (or equivalent) function solution ...

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

Answer
60%
+1 −0
Challenges The Pell Numbers

Haskell, 21 bytes f=0:scanl((+).(*2))1f Try it online!

posted 4y ago by Hakerh400‭

Answer
60%
+1 −0
Q&A Tips for golfing in Scala

What general tips do you have for golfing in Scala? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Scala (e.g. "remove comments" i...

1 answer  ·  posted 4y ago by user‭  ·  edited 3y ago by user‭

Question code-golf tips
60%
+1 −0
Q&A Tips for golfing in Scala

Making a function with val can be shorter than with a def If you're pattern matching, you can use Scala's special syntax and omit match when assigning an anonymous function to a val. As you can se...

posted 4y ago by user‭

Answer
60%
+1 −0
Challenges Solve Goldbach's Conjecture

APL (Dyalog Unicode), 32 bytes (SBCS) {⊃(⊢(/⍨)⍵=+/¨),∘.,⍨(⊢~∘.×)⍨1↓⍳⍵} Try it online! {⊃(⊢(/⍨)⍵=+/¨),∘.,⍨(⊢~∘.×)⍨1↓⍳⍵} ⍳⍵ ⍝ Range from 1 to n ...

posted 4y ago by user‭

Answer
60%
+1 −0
Challenges Beaver Code Decryption

Husk, 8 bytes ΣTm?I₀ε½ Try it online! It's jelly but reversed. 1 byte lesser due to a single byte halve.

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

Answer
60%
+1 −0
Challenges Beaver Code Decryption

APL(Dyalog Extended), 32 bytes SBCS {1=≢⍵:⍵⋄0~⍨,⍉↑∇¨↓2 ¯1⍴⍵,0/⍨2|≢⍵} Try it on APLgolf! A dfn submission which takes a string as input. I thought this would be much shorter, but it's only a s...

posted 4y ago by Razetime‭

Answer
60%
+1 −0
Challenges Really Cool Numbers

APL (Dyalog Unicode), 30 29 bytes Saved 1 byte thanks to Razetime (could've saved 1 more with a tradfn, but I didn't feel like it) {∧/(0=1|+/÷≢)¨1↓¨g¨(g←∪⊢∨⍳)⍵} Try it online! This answer w...

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

Answer
60%
+1 −0
Challenges Really Cool Numbers

Husk, 9 bytes ΛöS=⌊AhḊḊ Try it online! or Verify all testcases returns number of divisors + 1 for true and 0 for false.

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

Answer
60%
+1 −0
Challenges Print the Great Numeric Pyramid

BQN, 33 bytesSBCS >(⌽(⊑¨55↑+˜⊸+⊔'0'+⌽⊸⌊⊸⌊)¨˜1↓↑)↕28 Run online! Minimum of barycentric coordinates placed according to a skew transformation on two of them. So, the min(i,j,27-i-j) thing pr...

posted 4y ago by Marshall Lochbaum‭

Answer
60%
+1 −0
Challenges Backspace an array

Python 3.8 (pre-release), 62 bytes f=lambda x,a=[]:f(x[1:],a+[x[0]]if x[0]else a[:-1])if x else a Try it online! -11 bytes thanks to user

posted 4y ago by hyper-neutrino‭  ·  edited 4y ago by hyper-neutrino‭

Answer
60%
+1 −0
Challenges Backspace an array

JavaScript (Node.js), 41 40 bytes Saved 1 byte thanks to Shaggy x=>x.map(e=>e?a.push(e):a.pop(),a=[])&&a Try it online! x => //x is the input x.map(e=> //For every...

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

Answer
60%
+1 −0
Sandbox Catch the fruit

posted 4y ago by Razetime‭

60%
+1 −0
Meta Should we import our old policy posts?

I haven't been involved enough in SE Code Golf to really count for much. But I do think we need to have policies stated somewhere. One advantage we have here is that once policies get reasonably fi...

posted 4y ago by manassehkatz‭

Answer
60%
+1 −0
Meta Sandbox-specific Tags

I think there should be a standard set of tabs to use in Sandbox to indicate that a post has been turned into a Challenge, and possibly for other Sandbox-specific status issues as well.

1 answer  ·  posted 4y ago by manassehkatz‭  ·  last activity 4y ago by Monica Cellio‭

Question feature-request
60%
+1 −0
60%
+1 −0
Sandbox Golf me a polygonal loader

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

60%
+1 −0
Challenges Tile pyramids on top of each other!

JavaScript (Node.js), 57 56 bytes f=(a,b='/\\')=>a--?''.padEnd(a)+b+` `+f(a,'/'+b+'\\'):'' Try it online!

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

Answer
60%
+1 −0
Challenges Tile pyramids on top of each other!

Canvas, 9 7 bytes H/×║∔}r Try it here! Explanation H/×║+}r H } push empty art and start a loop from 1..n /× repeat '/' i times ║ palindromize horizontally(no overlap) ...

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

Answer
60%
+1 −0
Challenges Tile pyramids on top of each other!

Python 2, 57 bytes a,x=1,input() exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x Prints it out line by line Try it online!

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

Answer
60%
+1 −0
Sandbox Point Game KOTH

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

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 4y ago by xnor‭

Answer
60%
+1 −0
Challenges Bytes to Segfault

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

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

Answer