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 Evaluation order of an APL n-train

Description APL trains are a series of functions, that get applied to an argument in this way: (f g) x = f g x (f g h) x = (f x) g (h x) (a b c d e f) x = (a (b c (d e f))) x = a (b x) c (d x) ...

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

Question code-golf
81%
+7 −0
Challenges Word Count Tool

In Google Docs, the word count tool looks like this: Pages would not make sense, but your goal is to implement every other count. Definitions Words are strings of text separated by any amount ...

9 answers  ·  posted 3y ago by Quintec‭  ·  last activity 2y ago by torres‭

Question code-golf string
81%
+7 −0
Meta Should challenges be worth 10 reputation?

status-completed I've just converted posts in the Challenges category over to a new Challenge post type that awards more reputation per upvote, starting now. Retroactive reputation changes are bei...

posted 3y ago by ArtOfCode‭  ·  edited 2y ago by Monica Cellio‭

Answer
81%
+7 −0
Challenges Evens or Odds - you know this one

Get ready for a comparatively dry question - this is intended to be one of the "the"s of the code-golfing dictionary. Create a program which inputs a base 10 non-negative whole number (without lea...

16 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 1y ago by Olin Lathrop‭

81%
+7 −0
Meta How do we handle standardizing things?

This sounds like a great idea to me. To summarize how we can move forward on this: For the Codidact Team Create a new meta tag (defaults? name pending) that is one of the options for the requir...

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

Answer
80%
+6 −0
Challenges Diagonalized alphabet

BQN, 18 bytesSBCS 'A'-¬⊸⌊2×13-˜⌜○↕14 Run online! This solution computes a table of c-r, where r is the row number and c is the column number, so that the first row is 0 1 2… and the first colu...

posted 3y ago by Marshall Lochbaum‭

Answer
80%
+6 −0
Challenges Output 256 in many different ways

Vyxal, 20 23 24 solutions Thanks to @Razetime for suggesting using Π, allowing for +1 solution. Try them Online! The programs are meant to be run individually, so the ,Ṡ_ is just there to output...

posted 3y ago by Aaron Miller‭  ·  edited 3y ago by Aaron Miller‭

Answer
80%
+6 −0
Challenges Output 256 in many different ways

Japt, 27 Solutions This started out as a collaboration with Quintec but quickly got very out of hand! Posted with their permission. More solutions to follow. Hopefully! 256 Try it Just the b...

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

Answer
80%
+6 −0
Challenges Evens or Odds - you know this one

Python 3, 10 bytes 1 .__and__ Try it online! Returns 1 for odd numbers and 0 for even numbers. Two bytes shorter than the trivial lambda x:x%2 and one byte shorter than the equivalent magic...

posted 3y ago by hyper-neutrino‭

Answer
80%
+6 −0
Challenges Evens or Odds - you know this one

Regex, 8 bytes [02468]$ Matches strings ending in one of 0, 2, 4, 6, 8. [13579]$ is equivalent but with opposite outputs. Try it on Regex101!

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

Answer
80%
+6 −0
Meta Leaderboards are live

You might have noticed that challenges now show a leaderboard in addition to the table of contents. This is something this community has wanted for a while, and now, thanks to user contributions a...

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

Question discussion
80%
+6 −0
Challenges Versatile self-printer

Using your languages of choice, golf a quine - a non-empty program taking no input and only outputting its source. Here, the win condition is your quine working in the most languages. It should be...

1 answer  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by General Sebast1an‭

80%
+6 −0
Meta Should [code-golf-tips] be replaced with [tips] + [code-golf]?

Yes tips is a sort of prefix tag, and code-golf-tips is a superfluous tag. I think it it worth keeping them separate because tips is already very flexible.

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

Answer
80%
+6 −0
Challenges Are All Elements Equal?

Zsh, 8 bytes >$@ <^$1 Attempt This Online! Outputs via exit code: 0 for not all the same; 1 for all the same >$@: create a file named for each element in the input effectively de...

posted 2y ago by pxeger‭

Answer
80%
+6 −0
Meta Default Rules: Extensions

Since there have been some discussions about the use of GCC extensions, I decided to make a default-rules post about it. How should we deal with compiler extensions to languages?

3 answers  ·  posted 2y ago by Moshi‭  ·  last activity 2y ago by dzaima‭

Question default-rules
80%
+6 −0
Meta Meet the Codidact Team!

As we start on building a new community here together, we're bound to find some sticking points. Those might be bugs, new features you need, things you need support with... whatever they are, the C...

0 answers  ·  posted 3y ago by luap42‭  ·  edited 3y ago by ArtOfCode‭

80%
+6 −0
Challenges "Hello, World!"

PHP, 13 bytes Hello, World! PHP by default prints all source to output until it encounters <? or <?php.

posted 3y ago by manassehkatz‭

Answer
80%
+6 −0
Meta Should we import our old policy posts?

Over on codegolf.stackexchange.com, we have numerous meta posts outlining loopholes answers can't break, validity of output/input methods and other rule-type posts. Some examples: https://cod...

2 answers  ·  posted 3y ago by lyxal‭  ·  edited 3y ago by lyxal‭

Question discussion
80%
+6 −0
Challenges Partial Sums of Harmonic Series

Japt, 11 10 bytes >0©ÒßUÉ/°T Try it >0©ÒßUÉ/°T :Implicit input of integer U >0 :Greater than 0? © :Logical AND with Ò :Negate the bitwise ...

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

Answer
80%
+6 −0
Challenges 1, 2, Fizz, 4, Buzz!

C (gcc), 113 Bytes i;main(){while(i++<100){char*h[]={"%d "," "},**p=h;i%3||(*p++="Fizz%2$s");i%5||(*p="Buzz ");printf(*h,i,h[1]);}} This compiles with several warnings, but no errors. Here'...

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

Answer
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
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
Challenges Reverse an ASCII string

JavaScript, 25 24 bytes -1 byte thanks to @Arnauld‭ f=([a,...b])=>a?f(b)+a:b Try it online!

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

Answer
80%
+6 −0
Challenges Create an Alphabet Diamond

Brain-Flak, 250 bytes ((((()()()){}){}){}()){(({})[()])}{}(<>)<>{({}<>)<>}<>{(({})[()])}([]){{}([(({}))](((()()()){}){}){}()){({}[()])<>((((()()()()){}){}){})&l...

posted 3y ago by DJMcMayhem‭

Answer
80%
+6 −0
Challenges Is it a near-anagram?

Two words are anagrams of each other if the letters of one can be reordered to spell the other; e.g. ADOBE and ABODE are anagrams. An alternate way of describing it is that both words contain the s...

5 answers  ·  posted 3y ago by snail_‭  ·  edited 2y ago by General Sebast1an‭

Question code-golf string