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
 
81%
+7 −0
Challenges Make my number a set

Natural to set (set meaning an unordered collection with no duplicates, though answers may use and output lists instead) Recently I was brainstorming what a language with only (arbitrarily nested...

10 answers  ·  posted 3y ago by Wezl‭  ·  last activity 2y ago by radarek‭

Question code-golf number
81%
+7 −0
Challenges Backspace an array

Challenge Given an array consisting of positive integers and 0s, return it with 0s acting like backspaces. Leading backspaces do nothing, and more backspaces than elements also does nothing. Cre...

6 answers  ·  posted 3y ago by rak1507‭  ·  last activity 2y ago by Shaggy‭

Question code-golf
81%
+7 −0
Challenges Print the Great Numeric Pyramid

Python 2, 76 bytes i=27 while~i:print' '*i+' '.join(`min(i,j,27-i-j)`for j in range(28-i));i-=1 Try it online! Computes the digit in row i from the bottom, position j as min(i,j,27-i-j). F...

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

Answer
81%
+7 −0
Meta Who should the temporary moderators be?

As we have set up communities here on the Codidact network we've been appointing temporary moderators. Ultimately, of course, we want each community to choose its own moderators; we've been doing ...

4 answers  ·  posted 3y ago by Monica Cellio‭  ·  last activity 3y ago by deleted user

81%
+7 −0
Meta Should sandbox posts give rep?

The Sandbox is intended to be a place for feedback, right? If I lost rep because my sandboxed idea wasn't good, I'd be pretty angry about that. Don't have the Sandbox modify reputation; instead us...

posted 3y ago by Corsaka‭

Answer
81%
+7 −0
Challenges Bytes to Segfault

Challenge Cause the currently running program to receive the SIGSEGV signal (on Linux or other *nix systems) as fast as possible. What it does with the signal doesn't matter as long as it receives...

10 answers  ·  posted 3y ago by moony‭  ·  last activity 2y ago by radarek‭

Question code-golf *nix
81%
+7 −0
Challenges Bytes to Segfault

C, 5 bytes main; This exploits the fact that uninitialised globals live in the .bss section, and that section is not executable. So any attempt to execute code there, regardless of content, wil...

posted 3y ago by Chris Jester-Young‭  ·  edited 3y ago by Chris Jester-Young‭

Answer
81%
+7 −0
Challenges Reverse an ASCII string

Ahead, 3 bytes SW@ S Slurp entire input to stack W Write entire stack @ End Try it online!

posted 3y ago by snail_‭

Answer
81%
+7 −0
Challenges Collatz conjecture; Count the tries to reach $1$

Background Check out this video on the Collatz conjecture, also known as A006577. If you don't know what this is, we're given an equation of $3x + 1$, and it is applied this way: If $x$ is odd...

15 answers  ·  posted 2y ago by General Sebast1an‭  ·  last activity 2y ago by torres‭

Question code-golf math number
81%
+7 −0
Challenges Truthify an array

JavaScript (Node.js), 74 70 bytes Works for any number of dimensions. f=(a,z=[])=>a.map?.((b,c)=>z.push(...f(b).map(a=>[c,...a])))?z:a?[z]:z Try it online! (TIO uses an old version ...

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

Answer
81%
+7 −0
Challenges Truthify an array

Jelly has an atom called untruth, which when given indices, creates an array with 1s at those places: [2,4] → [0,1,0,1]. You are required to perform the inverse of this. Given a 2D boolean array, ...

10 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by General Sebast1an‭

81%
+7 −0
Challenges Output 256 in many different ways

C, 8 solutions Standard C, no extensions. 1 solution snippet per line: "llll"[3]^33^333 4*4*4*4 5555-555-555-555-555-555-555-555-555-555-55-55-55-55-55-5-5-5-7-7 6666/26 (int){8<...

posted 3y ago by Lundin‭

Answer
81%
+7 −0
Challenges Reverse an ASCII string

Brain-Flak, 12 bytes {({}<>)<>}<> Try it online! # (Implicitly) Read characters from STDIN and place them all on the active stack # While the top of the active stack is no...

posted 3y ago by DJMcMayhem‭

Answer
81%
+7 −0
81%
+7 −0
Meta Default Rules: Extensions

The answer header must specify the minimum implementation & environment required If there are multiple implementations of a language and an answer depends on features of one, it must be specif...

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

Answer
81%
+7 −0
Challenges Reduce over the range [1..n]

Task I often need to find the factorial of a number or the sum of all numbers up to a number when cheating on math tests. To help me with this, your task is to write $F$, a generalized version of ...

14 answers  ·  posted 2y ago by user‭  ·  last activity 1y ago by gifti‭

81%
+7 −0
Challenges Find n Niven Numbers

Challenge A Niven number is a positive integer which is divisible by the sum of its digits. For example, 81 -> 8+1=9 -> 81%9=0. Your task is to find the first n Niven numbers, given n. Te...

7 answers  ·  posted 1y ago by Razetime‭  ·  last activity 1y ago by Shaggy‭

81%
+7 −0
Meta Default Rules: Code Golf I/O

Programs may take input from prompts from the GUI For Mathematica, JS, Matlab, et. al. this is the closest thing they have to STDIN.

posted 2y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Loopholes

Using the lack of features in a language to trivialize the problem For example, in a challenge which requires your program to check if it is connected to the internet, using Brainfuck to always pr...

posted 2y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Code Golf I/O

Functions may take multiple arguments with currying For some languages like Haskell this is almost a necessity, as only one-argument functions exist and multi-argument functions are implemented wi...

posted 2y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Loopholes

Interpreting the challenge too literally If the challenge asks that you print the nth prime given input n, a program printing the nth prime given input n isn't allowed.

posted 2y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Challenges Operation "Find The Operator"

Challenge Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value. The program must figure out how to get the 2 fir...

5 answers  ·  posted 2y ago by General Sebast1an‭  ·  last activity 2y ago by radarek‭

Question code-golf math number
81%
+7 −0
Meta New solution to same challenge in same language: Change existing answer or add new one?

Make a new post If they are completely different solutions, I would say they should be judged separately.

posted 2y ago by Quintec‭

Answer
81%
+7 −0
Challenges Determine whether an integer is square-free

An integer is called square-free if it is not a multiple of a perfect square other than 1. For example, 42 is square-free, but 44 is not because it is a multiple of the perfect square 4 = 2². Your...

13 answers  ·  posted 2y ago by celtschk‭  ·  last activity 1y ago by Shaggy‭

81%
+7 −0
Challenges Efficient censorship

You are a low-level censor working for the Ministry of Media Accuracy. Part of your job is to make sure that certain words don't appear in publications. Every morning you get a fresh stack of next...

4 answers  ·  posted 9mo ago by WheatWizard‭  ·  last activity 9mo ago by Shaggy‭

Question code-golf string