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
 
57%
+2 −1
Meta Answering challenges with languages newer than the challenge

Languages made specifically for a challenge after it was published This is the general problem with allowing languages newer than the challenge. This is already considered a standard loophole, and...

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

Answer
57%
+2 −1
Challenges Fibonacci without consecutive digits

Output the Nth number in the list of Fibonacci numbers that have no consecutive digits. Input A non-negative integer (if you treat the Fibonacci numbers as zero-indexed) or a positive integer (...

4 answers  ·  posted 9mo ago by trichoplax‭  ·  last activity 2mo ago by Andrew Ray‭

55%
+3 −2
Challenges "Hello, {name}!"

Background While we do have a "Hello, World!" challenge, we still don't have one regarding input. So let's do one! Challenge Create a program that takes an input (not as a function argument) the...

16 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 2y ago by south‭

Question code-golf string
50%
+0 −0
Challenges In The Jailhouse Now

C (clang), 210 198 183 bytes i,j,k,l;s(v,w,x,y,z){printf("%s",v);for(;w<x;w++){printf("%s",y);}puts(z);}main(){scanf("%i",&i);l=i-3;s("╔",j,l,"╦","╗");for(j=0;j<i-2;j++){s("╠",k,l,"╬",...

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

Answer
50%
+0 −0
Q&A Tips in golfing using Lua

Lua's not really used much in golfing, so it'd be pretty cool to learn some golfing tricks when making answers using it. What golfing tips are there for Lua?

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

Question code-golf tips
50%
+1 −1
Challenges Compute the determinant

Python 3, 29 bytes import numpy numpy.linalg.det Yeah, this is really boring, but I'm curious if this can be beat in Python. Try it online!

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

Answer
50%
+0 −0
Challenges "Hello, World!"

Sclipting, (UTF-16) 18 bytes 낆녬닆묬긅덯댦롤긐 Since it hasn't been added yet.

posted 3y ago by Moshi‭

Answer
50%
+0 −0
Challenges "Hello, {name}!"

Java (JDK), 134 123 118 bytes interface M{static void main(String[]a){System.out.print("Hello, "+new java.util.Scanner(System.in).nextLine()+"!");}} Try it online! Golfed 5 bytes thanks to @...

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

Answer
50%
+0 −0
Challenges My house is destroyed! Can you make me one?

C (clang), 116 102 bytes j,k;f(i){for(j=i;j--;printf("#"));for(j=i-1;j--;printf("#"))for(k=i-2,printf("\n#");k--;printf(" "));} Try it online! Sometimes, it's better to use functions when yo...

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

Answer
50%
+0 −0
Q&A Tips in golfing using Lua

Remove print's parentheses when it's a single string print strangely works without parentheses, however, it only applies to single strings. In other words, it can't do the same for other variables...

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

Answer
50%
+0 −0
Challenges "Hello, World!"

Emoji, 24 bytes 💬Hello, World!💬➡ Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

SQLite, 21 bytes select'Hello, World!' Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

jq --null-input --raw-output, 15 bytes "Hello, World!" Try it online! They kept saying that jq is the language of September 2021. Still surprised no one even made a Hello, World! on it.

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
50%
+0 −0
Meta Suggestions for the new header banner/background

I'm bored. Let's do something. lmao While I was Somewhere Else, I went to make suggestions for designs on their sites, and no impact really occured. However, since I'm now a Codidactian (not a Cod...

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

Question discussion design
50%
+0 −0
Challenges Diagonalized alphabet

C (clang), 206 bytes main(i){char*s="YWUSQOMKIGECABDFHJLNPRTVXZ";for(i=13;i>0;printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",s[-1+i],s[0+i],s[1+i],s[2+i],s[3+i],s[4+i],s[5+i],s[6+i],s[7+i],s[8+i],s[...

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Q&A Tips in golfing using Lua

Convenient whitespace removal Here are instances where you can remove whitespace: Strings If you assigned or printed a string, then the next supposed line of code can lean on the right double-qu...

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges A number adder, not a death adder

Lua, 51 bytes P1: print("print(tonumber(io.read())+"..io.read()..")") Try it online! P2 (given I inputted 10, 29 bytes): print(tonumber(io.read())+10) Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges Getting perfect squares, differently

Lua, 41 40 bytes x=0 y=1while""do print(x)x=x+y y=y+2 end Try it online!

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

Answer
50%
+0 −0
Meta Leaderboards are live

Libraries are removed when "merge variants" is on. For example, this answer written in C (clang) uses a library called BMPL, so its header is C (clang) + BMPL. While there's nothing wrong with usin...

posted 3y ago by user‭

Answer
50%
+0 −0
Challenges Add two negabinary integers

Ruby, 75 bytes ->t,u{g=->a{a.reduce{-2*_1+_2}};('%b'%(g[t]+g[u]+(y=43690)^y)).to_i.digits} Try it online! Uses latest ruby features, so tio link will look different. Takes two digit a...

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

Answer
50%
+0 −0
Challenges The Pell Numbers

JavaScript, 26 bytes Outputs the nth term, 0-indexed. f=n=>n<2?n:f(--n)*2+f(--n) Try it online! JavaScript, 49 bytes Outputs the first n terms as a comma delimited string. f=n=&gt...

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

Answer
50%
+0 −0
Challenges "Hello, World!"

Lua, 20 bytes print"Hello, World!" Try it online!

posted 3y ago by General Sebast1an‭

Answer
50%
+0 −0
Challenges "Hello, World!"

Java, 37 Bytes v->System.out.print("Hello, World!");

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

Answer