Linked Questions

13 votes
22 answers
927 views

The following is the rhombus sequence. 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 Your task is to output this, ...
Shad's user avatar
  • 241
341 votes
184 answers
155k views

What general tips do you have for golfing in Python? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Python (e.g. "remove comments" is ...
moinudin's user avatar
  • 13k
69 votes
130 answers
10k views

Inspired by George Gibson's Print a Tabula Recta. You are to print/output this exact text: ...
Leaky Nun's user avatar
  • 50.6k
105 votes
45 answers
14k views

The aim of this post is to gather all the golfing tips that can be easily applied to <all languages> rather than a specific one. Only post answers that its ...
ajax333221's user avatar
  • 3,694
106 votes
39 answers
29k views

Are there any useful shortcuts that can be used in Java? As shown below, import already adds at least 17 characters to a program. ...
user avatar
110 votes
44 answers
19k views

This is similar to other "Tips for golfing in <...>" but specifically targeting the newer features in JavaScript brought up in ECMAScript 6 and above. JavaScript inherently is a very verbose ...
Optimizer's user avatar
  • 26.6k
28 votes
61 answers
4k views

Task Your task is to print this exact text: ...
Leaky Nun's user avatar
  • 50.6k
36 votes
48 answers
4k views

You've seen the amazing alphabet triangle, the revenge of the alphabet triangle and now it's time for the revenge of the revenge of the alphabet triangle! Introducing... THE ALPHABET DIAMOND! Your ...
Magic Octopus Urn's user avatar
29 votes
56 answers
3k views

Given no input, output this interesting alphabet pattern in either case (the case has to be consistent) via an accepted output method: A AB ACBC ADBDCD AEBECEDE AFBFCFDFEF AGBGCGDGEGFG AHBHCHDHEHFHGH ...
qqq's user avatar
  • 1,626
24 votes
32 answers
5k views

Creating a Crossed Square You are to take input of an integer of one or more and output a square made of any printable character of your choice with a diagonal cross through the centre. The general ...
TheLethalCoder's user avatar
22 votes
17 answers
4k views

Making a versatile integer printer is nice and all, but writing a single code that prints a lot of different numbers is cumbersome. Wouldn't it be easier to make a script that outputs a number, but ...
Stewie Griffin's user avatar
7 votes
11 answers
2k views

Objective: The objective is to calculate e^N for some real or imaginary N (e.g. 2, -3i, 0.7, 2.5i, but not 3+2i). This is code golf, so, shortest code (in bytes) wins. So, for example: N = 3, e^N = ...
mmk's user avatar
  • 261
12 votes
5 answers
2k views

What general tips are these for golfing in Lisp (any dialect)? Please post one tip per answer, and only answers that are specific to a dialect of Lisp (e.g. "remove comments" is not an answer). ...
NoOneIsHere's user avatar
  • 2,217
18 votes
8 answers
900 views

Y'know, we've had a lot of "alphabet" challenges recently. (one two three four five.) While I love a good challenge, and those challenges were very fun, I think it's time for a change of pace. We need ...
Conor O'Brien's user avatar