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
 
77%
+5 −0
Challenges Compute the determinant

CJam, 45 bytes {:A_,{1$_,,.=:+\)/:CAff*A@zf{\f.*::+}..-}/;C} This implementation is an anonymous block (~function). Online test suite. Dissection This implements the Faddeev-LeVerrier algor...

posted 3y ago by Peter Taylor‭  ·  edited 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Meta Reactions on Code Golf Codidact

Reactions were just released! See the main meta post here for the details. Currently, the default reactions look like this: Now, I would argue that none of these fit for Code Golf - so what rea...

4 answers  ·  posted 3y ago by Quintec‭  ·  last activity 3y ago by Lundin‭

Question discussion
77%
+5 −0
Challenges Create a range grid

This challenge is based on the i. verb from J. A range grid is basically a range of m × n numbers fit into a rectangular grid with m rows and n columns. A 2×3 range grid would be: 0 1 2 3 4 5 ...

8 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Shaggy‭

Question code-golf matrix
77%
+5 −0
Meta Rules for function submissions

What are our rules for function submission? What constitutes a function, and what makes a submission valid? Language agnostic answers are allowed.

2 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Lundin‭

Question discussion
77%
+5 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

This is a fixed output challenge. It is similar to a standard Kolmogorov complexity challenge, except you get to choose your own fixed output. Given no input, output 55 fruits. You may choose any 5...

5 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 6mo ago by trichoplax‭

77%
+5 −0
Meta New solution to same challenge in same language: Change existing answer or add new one?

A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy. Now I wonder if I s...

1 answer  ·  posted 3y ago by celtschk‭  ·  edited 1y ago by trichoplax‭

77%
+5 −0
Meta How can we grow this community?

TIO? This community uses Try It Online (TIO) a lot, as do other golfing and programming sites. TIO doesn't host ads, but is some sort of partnership with them possible? What might that look like...

posted 3y ago by Monica Cellio‭

Answer
77%
+5 −0
Challenges Find the IP address class

Task Given an IP address as a string, find its IP address class. For reference, here is a table: Class Leadingbits Numberof networks Addressesper network Total addressesin class Start...

7 answers  ·  posted 3y ago by Razetime‭  ·  last activity 28d ago by Shaggy‭

Question code-golf
77%
+5 −0
Challenges Keyword golfing

Python 3.7, 231 bytes class C:pass def g(): async def f():return;yield;await[3for()in()];nonlocal f if None: with lambda:3or 7and 8as q:del x elif False:raise else:assert 1is not 5 try:...

posted 3y ago by m90‭

Answer
77%
+5 −0
Challenges Can you give me half?

dc, 3 unique bytes, 138 bytes This challenge is pretty easy if you aim for just 4 unique bytes. For example, you could push the stack depth repeatedly to get ascending integers, set the precision ...

posted 3y ago by orthoplex‭

Answer
77%
+5 −0
Challenges Looping counter

Lua, 31 bytes _=''::_::_=_..'*'print(_)goto _ Try it online!

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

Answer
77%
+5 −0
Challenges Create an Alphabet Diamond

V (vim), 21 bytes ¬AZ¬YA|òlÄ26|xx>>YGpH Try it online! Explanation: ¬AZ " Insert every character from A to Z ¬YA " Insert every character from Y...

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

Answer
77%
+5 −0
Meta Microcontroller-involving challenges and the rules.

I'd like to make a challenge that involves the use of a microcontroller, specifically, a challenge to read any 4-bit Gray Code from 4 IO pins, and convert it to binary. Simple introductory type cha...

1 answer  ·  posted 4y ago by moony‭  ·  last activity 4y ago by Lundin‭

77%
+5 −0
Challenges Is it a near-anagram?

Stax, 12 bytes ä╫◙=♥:≡ƒélΣæ Run and debug it +3 after correcting it(thanks, HakerH) Explanation b%s%>{s}M|-%1= b copy the two inputs %s%> is the first's length...

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

Answer
77%
+5 −0
Challenges Is it a near-anagram?

JavaScript (Node.js), 131 bytes Returns true and false g=(s,t,c=[...t])=>([...s].forEach(v=>(y=c.indexOf(v),c.splice(y,y>=0))),c) f=(s,t)=>(x=g(s,t).length)<2&&(y=g(t,s).l...

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

Answer
77%
+5 −0
Challenges Ratio limits of fibonacci-like series

Definition $F_{n}\left(0\right)=0$ $F_{n}\left(1\right)=1$ $F_{n}\left(x\right)=n\cdot F_{n}\left(x-1\right)+F_{n}\left(x-2\right)$ For example: $F_{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\ri...

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

Question code-golf sequence
77%
+5 −0
Challenges Reverse an ASCII string

jq, 16 bytes, preferably -rR ./""|reverse|add Annoyingly, jq has convenient things like implicit I/O, and annoying things like adding strings, but you can't reverse a string >:|. ./""&...

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

Answer
77%
+5 −0
Challenges Beaver Code Decryption

BQN, 24 bytesSBCS {g⊔⁼𝕊¨⍟(1<≠)𝕩⊔˜∧g←2|↕≠𝕩} Run online! {g⊔⁼𝕊¨⍟(1<≠)𝕩⊔˜∧g←2|↕≠𝕩} { } # Block function 𝕊 with argument 𝕩 ≠𝕩 # Length of 𝕩 ...

posted 3y ago by Marshall Lochbaum‭

Answer
77%
+5 −0
Challenges Create an Alphabet Diamond

BQN, 19 bytesSBCS ' '+32⊸<⊸×+⌜˜⌽⊸⌊↕59 Run online! This uses the whitespace allowance, padding by four spaces on all sides to make the arithmetic work better. It can be adjusted by replacing...

posted 3y ago by Marshall Lochbaum‭

Answer
77%
+5 −0
Challenges Output 256 in many different ways

BQN, 14 solutions (SBCS) Run online! This link shows the result of each expression and a table of character intersections. Each expression intersects with itself only, giving a diagonal matrix. Th...

posted 3y ago by Marshall Lochbaum‭  ·  edited 3y ago by Marshall Lochbaum‭

Answer
77%
+5 −0
Challenges Make my number a set

BQN, 7 6 bytesSBCS ≢↑∘⊢´↕ Run online! The less-golfed version {↑⍟𝕩⟨⟩} is more readable: it applies Prefixes (↑) the given number of times to the empty list ⟨⟩ and… that's it. (Suffixes also wo...

posted 3y ago by Marshall Lochbaum‭  ·  edited 3y ago by Marshall Lochbaum‭

Answer
77%
+5 −0
Challenges Make my number a set

JavaScript (V8), 32 bytes f=n=>[...Array(n).keys()].map(f) Try it online! Somehow it doesn't recurse forever at n=0. Pretty nice.

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

Answer
77%
+5 −0
Challenges Merge two strings

APL(Dyalog Unicode), 26 bytes SBCS {⊃x/⍨⊃¨⍺∘⍷¨x←,∘⍵¨(⊂⍬),,\⍺} Try it on APLgolf! A dfn submission which takes the inputs as left and right argument. I took way too long to come up with this. ...

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Challenges Juggler sequences

Husk, 11 10 bytes U¡λ⌊^+.%2¹ Try it online! This can probably be trivially ported to Jelly. Explanation U¡o⌊Ṡ^o+.%2 ¡ iterate over the input infinitely, creating a list o ...

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

Answer
77%
+5 −0
Challenges Juggler sequences

Scala, 78 67 64 bytes Saved 3 bytes thanks to Razetime Stream.iterate(_)(x=>math.pow(x,x%2+.5).toInt).takeWhile(_>1):+1 Try it in Scastie! Stream.iterate(_) //Make an infinite list by r...

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

Answer