Linked Questions

522 votes
985 answers
194k views

"Hello, World!"

So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with hello-world, and counting). While this is not the most ...
Martin Ender's user avatar
329 votes
179 answers
144k views

Tips for golfing in Python

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
  • 12.7k
69 votes
129 answers
9k views

Print/Output the L-phabet

Inspired by George Gibson's Print a Tabula Recta. You are to print/output this exact text: ...
Leaky Nun's user avatar
  • 49.8k
53 votes
51 answers
8k views

Tips for golfing in PowerShell

What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. "...
Joey's user avatar
  • 13.1k
25 votes
58 answers
3k views

Print the missing characters

Simple challenge inspired by the popularity of my previous print invisible text and print real invisible text challenges, and the same length different string challenge. Given a string consisting of ...
Mayube's user avatar
  • 11.6k
44 votes
19 answers
6k views

Create a square of increasing size by replicating the initial code

Your assignment is to write a program of even length, that prints an ASCII-art square (described below), that increases its side length by 1 unit each time the original source code is pasted in the ...
user avatar
11 votes
87 answers
4k views

Print the ASCII printable character set

Challenge: Print the entire printable ASCII charset (not just a range!) in order. ...
anna328p's user avatar
  • 6,396
34 votes
31 answers
3k views

Autogram programs

This sentence employs two a’s, two c’s, two d’s, twenty-eight e’s, five f’s, three g’s, eight h’s, eleven i’s, three l’s, two m’s, thirteen n’s, nine o’s, two p’s, five r’s, twenty-five s’s, twenty-...
N. Virgo's user avatar
  • 7,312
22 votes
17 answers
5k views

The infinite power tower

The challenge Quite simple, given an input x, calculate it's infinite power tower! x^x^x^x^x^x... For you math-lovers out there,...
Graviton's user avatar
  • 2,892
25 votes
6 answers
1k views

Polyglot the (non constant) OEIS!

Disclaimer: This is heavily inspired by "Polyglot the OEIS!" but fixes the problem that lead to closure (see the output section) and was re-posted as to not invalidate answers. Introduction ...
SEJPM's user avatar
  • 3,393
20 votes
9 answers
2k views

Partitioning the grid into triangles

Goal The goal of this challenge is to produce a function of n which computes the number of ways to partition the n X 1 grid into ...
Peter Kagey's user avatar
  • 8,689
18 votes
17 answers
1k views

PPCG Jeopardy: Robbers

How well do you know the site? Let's find out. This is a cops-and-robbers challenge. Cop's thread. As a robber, you need to: Find a non-deleted, non-closed challenge that matches a cop's ...
Nathan Merrill's user avatar
12 votes
7 answers
883 views

Shortest program whose concatenated program+output is a permutation of the 95 printable ASCII characters

Write a program that's as short as possible (as measured by byte-count), takes no input, contains no comments, and outputs a character string/sequence, such that concatenated program+output is exactly ...
r.e.s.'s user avatar
  • 3,132
11 votes
6 answers
814 views

Invert a Quine!

We all know what a quine is. An inverted quine is a non-empty program that prints the inverse of its source code without reading its source code, and consists solely of printable-ASCII characters (...
Gryphon's user avatar
  • 7,235
7 votes
1 answer
490 views

QWERTY Quine Creation

Challenge Create a quine, that instead of outputting it's source, output's it's source QWERTY-sorted. What is QWERTY sorting? QWERTY sorting is sorting code by the QWERTY keyboard. Anything higher ...
NoOneIsHere's user avatar
  • 2,201

15 30 50 per page