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 »

Posts by General Sebast1an‭

150 posts
50%
+0 −0
Challenges Getting perfect squares, differently

Python 3, 34 bytes x=0;y=1 while 1:x+=y;print(x);y+=2 Try it online! 1 is the int equivalent to True, which helps save bytes.

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

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

C (clang), 47 45 43 bytes i,j;main(){for(;printf("%i ",i-=~j);j+=2);} Try it online! Golfed 2 bytes from inspiration of @Shaggy's answer. Golfed 2 bytes by @m90.

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

Answer
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 2y ago by General Sebast1an‭  ·  last activity 2y ago by General Sebast1an‭

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

Challenge Create a program that takes input of a string and outputs an integer using the following calculation system: The string can only contain +, -, *, /, ^, ! (or a different character; ! ...

1 answer  ·  posted 2y ago by General Sebast1an‭  ·  edited 2y ago by General Sebast1an‭

50%
+0 −0
Meta Add detailed wikis and usage info on these tags

graphical-output Usage info: Graphical output challenges involve outputting images or illustrations using graphics. Detailed wiki: (uses text from CGCC's) Graphical output challenges invol...

posted 2y ago by General Sebast1an‭

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

C (clang), 59 bytes c;f(int a,(*b)(int,int)){for(c=a;a>1;)c=b(--a,c);return c;} Try it online! This program written by @Hakerh400 in the comments is basically how the other answers before...

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

Answer
40%
+0 −1
71%
+3 −0
Meta Add detailed wikis and usage info on these tags

In this request (not really a feature-request but still tagged so anyway), I'd like to have detailed wikis on tags and maybe usage information on them too. Currently, these tags have usage info in...

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

66%
+2 −0
50%
+0 −0
Q&A Tips for golfing in C

Abuse (as few) libraries (as possible) We don't want to use too much libraries when playing challenges. Sometimes, libraries aren't used at all in some answers in C. What if we want to shorten so...

posted 2y ago by General Sebast1an‭

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

Java (JDK), 80 bytes class A{public static void main(String[] A){System.out.print("Hello, World!");}} Try it online! This answer, except it's actually runnable.

posted 2y ago by General Sebast1an‭

Answer
77%
+5 −0
Challenges 99 Shortened Bottles of Beer

Disclaimer This challenge also exists in CGCC, but if you want to compete here (too), then hop in! Challenge Recreate "99 Bottles of Beer on the Wall", using the least bytes possible. Lyrics: ...

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

60%
+1 −0
Challenges It's Hip to be Square

C (clang), 189 181 176 173 bytes i,n,x,y;main(){scanf("%i",&x);y=1,n=10001;int z[n];for(i=0;i<n;i++,y++){z[i]=pow(y,2);}for(i=0;i<n;i++){if(x==z[i]){puts("True");break;}if(x!=z[i]&...

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

Answer
50%
+0 −0
Challenges Guess the language! (Cops' Thread)

PicoLisp, cracked by Shaggy, 31 bytes (prinl "Cops and Robbers")(bye) Try it online! Strange language, I know.

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

Answer
50%
+0 −0
Challenges Guess the language! (Cops' Thread)

F# (.NET Core), cracked by Shaggy, 25 bytes printfn"Cops and Robbers" Try it online!

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

Answer
50%
+0 −0
Challenges Guess the language! (Cops' Thread)

Rust, cracked by Shaggy, 37 bytes fn main(){print!("Cops and Robbers")} Try it online! Hold on, lemme translate it for fun: For now, my print not say "Cons and Rubbers". Ahem, sorry, don't ...

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

Answer
77%
+5 −0
Q&A Getting started with making (and/or solving) KOTH challenges

I have seen KOTH (King of the Hill) challenges before but it's still unclear to me how to properly make, or even play, such challenge. To get started, how do I make (or solve) KOTHs? An answer cou...

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

50%
+0 −0
Challenges Guess the language! (Cops' Thread)

D, cracked by Kevin M. Mansour, 39 bytes void main(){write("Cops and Robbers");} Try it online! This doesn't look like C. Not even BMPL. Now we know why.

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

Answer
66%
+2 −0
Challenges Guess the language! (Cops' Thread)

Forth (gforth), cracked by user, 20 bytes .( Cops and Robbers) Try it online!

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

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

C# (.NET Core), 67 bytes class a{static void Main(){System.Console.Write("Hello, World!");}} Try it online!

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

Answer
50%
+0 −0
Q&A What's a code bowling challenge?

What's a code bowling challenge? Code bowling is a challenge/competition to solve a particular (usually simple) problem in the most bytes or complexity. From CGCC Are there any additional criteri...

posted 3y ago by General Sebast1an‭

Answer
66%
+2 −0
Q&A What's a code bowling challenge?

There's another type of challenge named code bowling, and I've never heard of it, or even if I did, still don't know how it works. I'm willing to write challenges on code bowling and I want to know...

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

Question code-bowling
50%
+0 −0
Challenges "Hello, World!"

Chef, 558 485 bytes H. Ingredients. 72 l H 101 l e 108 l l 111 l o 44 l _comma 32 l _space 87 l w 114 l r 100 l d 33 l _bang Method. Put _bang into mixing bowl.Put d into mixing b...

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

Answer