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
 
66%
+2 −0
Challenges Connect the corners without 4 in a row

Connect opposite corners of a rectangle of characters without putting 4 characters in a row. Input Two numbers, W and H, representing the width and height of the rectangle Each number will be ...

1 answer  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by WheatWizard‭

Question code-golf
66%
+2 −0
Challenges Can you give me half?

Lua 5.4, 3 unique characters #'#'/#'##' Try it online! [...] scoring is done in terms of number of unique characters used in the submission. Hashtag # Single quote ' Slash /

posted 3y ago by Zakk‭

Answer
66%
+2 −0
Challenges Create a range grid

Ruby, 33 bytes ->n,m{[*(0...n*m).each_slice(m)]} Try it online!

posted 3y ago by south‭

Answer
66%
+4 −1
Meta Rules for function submissions

General requirements You need to have all the code that is necessary to create the function within your submission. For most languages, this may include the syntax for defining the name and argum...

posted 3y ago by Razetime‭

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

Lua 5.4, 67 60 bytes function(x)return x==1 and 0 or 1+f(({x/2,3*x+1})[x%2+1])end Attempt This Online! Credits to @Moshi for more shortening.

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

Answer
66%
+2 −0
Meta Does Looping Counter qualify as kolmogorov-complexity?

No Your logic is correct. kolmogorov-complexity requires for the same constant fixed output across all solutions. This is not a static pattern, since it runs forever, so it doesn't fall under tha...

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Find n Niven Numbers

Python, 98 bytes from itertools import* f=lambda n:[*islice(filter(lambda k:k%sum(map(int,str(k)))==0,count(1)),n)] itertools.count() generates integer numbers starting from 1, filter() fil...

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

Answer
66%
+2 −0
Challenges Mark my beacons

Given a grid of numbers, mark the concentric areas around nonzero elements (beacons) decreasing from the value of the beacon till 1. For example, here are some grids with a single beacon: Size 1:...

0 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Moshi‭

Question code-golf matrix
66%
+2 −0
66%
+2 −0
Challenges Presumptuous base conversion

Japt, 13 bytes Takes input as a character array. mnG ìUrÔÄ ªUl Try it mnG\nìUrÔÄ ªUl :Implicit input of character array U m :Map n : Convert from bas...

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

Answer
66%
+2 −0
Challenges Presumptuous base conversion

Python 3, 60 59 bytes D=input();m=int(max(D),16);print(m and int(D,m+1)or len(D)) Quite straight forward implementation. Input string is assigned to D. m is the the max() letter in D conver...

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

Answer
66%
+2 −0
Meta Is there a problem with the edit queues?

I'm raising this on our local Meta first, rather than the main Codidact Meta, because I don't yet have the Edit Posts ability so I can't tell what problems may exist. Hopefully some of you who have...

1 answer  ·  posted 2y ago by trichoplax‭  ·  edited 2y ago by trichoplax‭

Question discussion editing
66%
+2 −0
Challenges Efficient censorship

Python 3, 102 bytes def f(x,y): a=[x] for x in a: if y not in x:return x for i in range(len(x)+1):a+=[x[:i]+x[i+1:]] Try it online! Not exactly the most efficient, but it works. Ju...

posted 2y ago by hyper-neutrino‭

Answer
66%
+2 −0
Challenges Efficient censorship

Vyxal, 44 bitsv2, 5.5 bytes ṗ'⁰c¬;ÞG Try it Online! Or, try a test suite This is like the second time this week I've used powerset for golf on a site that isn't SE. Explained ṗ'⁰c¬;ÞG ṗ ...

posted 2y ago by lyxal‭

Answer
66%
+2 −0
Challenges Connect the corners without 4 in a row

Haskell + hgl, 134 bytes k=cy"X.XX" x#1=[4,0,9,9]!x 2#y=8 3#y=[8,9,4,4]!y x#3=[0,3]!x _#_=0 x?y|(n,j)<-fvD 4$x%4#(y%4)=tk y$dr j$tk x<dr n<cy[dr2 k,k,cy".X",k] Attempt This Onlin...

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

Answer
66%
+2 −0
Meta Codidact Fractional Byte Consensus

I'm going to reiterate and build off ideas I laid out on this post on PPCG. First let's point out that at current the leader board does not support fractional scores. In this answer I am going to ...

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

Answer
66%
+2 −0
Challenges Count polyomino bisections

An polyomino is a non-empty connected subset of the square tiling consisting of squares joined along their edges. We will not require that polyominos be simply connected, that is they can have hole...

0 answers  ·  posted 2y ago by WheatWizard‭

Question code-golf polyominos
66%
+2 −0
Challenges Efficient censorship

Haskell + hgl, 14 bytes xBl<<ss><fn<iw Attempt This Online! Explanation ss gets all substrings of the input fn filters out the substrings that don't ... iw checks if the fo...

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

Answer
66%
+2 −0
Challenges Efficient censorship

Japt -h, 7 bytes à ñÊkøV Try it à ñÊkøV :Implicit input of strings U=X & V=Y à :Powerset of U ñ :Sort by Ê : Length k :Remove elements that...

posted 2y ago by Shaggy‭

Answer
66%
+2 −0
Challenges Determine if a polyomino is "prime"

An $n$-polyomino is a connected subset of the square tiling consisting of $n$ squares. We will not require that polyominos be simply connected, that is they can have holes. We will say a $n$-polyo...

1 answer  ·  posted 2y ago by WheatWizard‭  ·  edited 2y ago by WheatWizard‭

Question code-golf polyominos
66%
+2 −0
Challenges Build a replacement ball in regex.

In this challenge you will take a number $n$ and a string $X$ of length $\geq n$, and produce a regular expression which matches all strings that are withing $n$ character substitutions of $X$. Sp...

3 answers  ·  posted 2y ago by WheatWizard‭  ·  last activity 2y ago by WheatWizard‭

Question code-golf string regex
66%
+2 −0
Challenges Are these reduced forms of the same thing?

Task You are going to take three strings as input $A$, $B$ and $X$. And your goal is to determine if there exists a third string $S$ such that both $A$ and $B$ can be formed by iteratively removin...

0 answers  ·  posted 2y ago by WheatWizard‭  ·  edited 2y ago by WheatWizard‭

Question code-golf string abstract-algebra
66%
+2 −0
Challenges Build a replacement ball in regex.

Ruby, 82 bytes ->w,n{[*0...w.size].permutation(n).map{e=w*1;_1.map{|x|e[x]='.'};e}.uniq.join '|'} Attempt This Online! uses permutation to do most of the work. Might be shorter with somethi...

posted 2y ago by Razetime‭

Answer
66%
+2 −0
Meta Should posting on Meta affect reputation?

When we launched this community, we did not yet have the ability to set different reputation grants for different categories. We've had this for a while but we failed to follow up before now, sorr...

0 answers  ·  posted 2y ago by Monica Cellio‭  ·  edited 2y ago by Monica Cellio‭

Question discussion