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
 
60%
+1 −0
Challenges Getting perfect squares, differently

Create a program that gets all perfect squares starting from 0 or 1 without using any methods of multiplication (repetitive addition) and exponentiation (repetitive multiplication). Output them for...

7 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by General Sebast1an‭

60%
+1 −0
Challenges Caesar shift cipher

C (gcc), 112 bytes Function solution. p,*a;f(char*s,int n){a=strdup(s);for(s=a;*s;s++)(p=isalpha(*s)?(*s&96)^96?65:97:0)&&(*s=(*s-p+n)%26+p);puts(a);} Try it online! Explanati...

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

Answer
60%
+1 −0
Challenges Getting perfect squares, differently

JavaScript (V8), 28 bytes for(x=y=0;;++y)print(x+=++y) Try it online!

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Getting perfect squares, differently

Japt, 9 bytes No infinite lists in Japt so we'll have to go with a recursive solution. ßOpTµJJµ2 Test it ßOpTµJJµ2 ß :Recursive call with (irrelevant) argument Op : ...

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

Answer
60%
+1 −0
Challenges Getting perfect squares, differently

Husk, 3 bytes ∫İ1 Try it online! Scan from left over all odd numbers with addition. Uses this formula: $$ n^2 = \sum_{k=1}^n(2k-1) $$

posted 3y ago by Razetime‭

Answer
60%
+1 −0
Challenges A chunk of symbols is a calculation

JavaScript (Node.js), 148 bytes s=>s?eval(s.replace(/([^()])\1*/g,(m,g)=>(g=='!'?'+':g)+m.length).replace(/\(/g,'*(').replace(/-(\d|\(.+?\))\^(\d+)/g,(m,g,h)=>'-('+g+'**'+h+')')):0 Abu...

posted 3y ago by Moshi‭

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
60%
+1 −0
Sandbox The Camelot Wheel [FINALIZED]

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

60%
+1 −0
Challenges Longest Increasing Subsequence

Husk, 10 bytes L►LfΛo<0-Ṗ Try it online! Explanation L►LfΛo<0-Ṗ Ṗ power set of input f get elements which match the following: Λo - all pairwise difference...

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

Answer
60%
+1 −0
Challenges Evaluation order of an APL n-train

Japt, 10 bytes o ÅÔò cÔiU Try it o ÅÔò cÔiU :Implicit input of integer U o :Range [0,U) Å :Slice off the first element Ô :Reverse ò ...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Create an Alphabet Diamond

Japt -R, 11 bytes ;Bå+ mê ê û Test it ;Bå+ mê ê û ;B :Uppercase alphabet å+ :Cumulatively reduce by concatenation m :Map ê : Palindro...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges "Hello, World!"

HTML, 26 13 bytes Hello, World! Golfed 13 bytes thanks to @Razetime's advice.

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

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

Japt, 13 bytes o ï æ@¶Xx*Xej Try it o ï æ@¶Xx*Xej :Implicit input of integer U o :Range [0,U) ï :Cartesian product æ :First pair X that r...

posted 3y ago by Shaggy‭

Answer
60%
+1 −0
Challenges Word Count Tool

Japt v2.0a0, 19 18 17 bytes I need more caffeine! Takes input as an array of lines. Output is a reversed array. [Uc¸¬U¬Ucq\s f]ml Try it - includes all test cases, header splits string on new...

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

Answer
60%
+1 −0
Challenges Are they abundant, deficient or perfect?

Python 3, 235 185 141 118 bytes a=[[],[],[]] n=1;exec("d=sum(i for i in range(1,n)if n%i<1)-n;a[[[1,2][d<0],0][d>0]]+=n,;n+=1;"*int(input())) print(a) Try it online! Golfed 50 byt...

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Answer