Linked Questions

15
votes
10answers
523 views

Output numbers, more or less

The Challenge Given an input string (or array) consisting of < and >, output a sequence (array or string) of integers such ...
86
votes
60answers
22k views

Shut down the computer!

Challenge: In the programming language of your choice, shut down the machine that your code was executed on. Rules No shutting down by resource exhaustion (e.g.: forkbomb to force shutdown) You are ...
67
votes
28answers
5k views

Is the checkbox not not unchecked?

Doing code review, I stumbled upon the following code, that tests the status of a checkbox: if (!isNotUnchecked()) { ... } I had to brainstorm for 30 minutes to ...
21
votes
8answers
1k views

Almost a Columbo episode

Your task is to find two missing characters in a Columbo episode title. Input One of the 69 Columbo episode titles (as listed below), with exactly two characters replaced with ...
31
votes
9answers
7k views

Build a twisted "Hello world!"

Your job is quite simple, write a program that prints Hello, world!, that when twisted creates a program that prints Twister!. ...
28
votes
69answers
4k views

Is it an Odd Word?

Challenge Given a single word as input, determine if the word is odd or even. Odd and Even words Assume the general rules: ...
31
votes
15answers
5k views

Let's play Mölkky!

Mölkky Mölkky is a Finnish throwing game. The players use a wooden pin (also called "mölkky") to try to knock over wooden pins of almost similar dimensions with the throwing pin, marked with ...
6
votes
12answers
868 views

Range of numbers

Came over a similar problem in a project I'm working on and found it quite hard to solve it without excesive use of if. I'm eager to see if anyone can come up with ...
1
vote
11answers
654 views

Hi, can you draw some odd art? Bye!

Create a program that outputs "Hi, Hello!" in k bytes. By altering n bytes, the code should output all odd numbers in the range ...
32
votes
20answers
2k views

Figure and Ground

Source: Wikipedia For this challenge, you should write two programs which resemble the figure and ground of the above image, such that one of them prints figure ...
21
votes
15answers
3k views

Code Golf Golf Score

It's Friday... so let's go golfing! Write code that determines the player's scoring on a hole in a game of golf. The code can be either a function or entire program. As the genre suggests, shortest ...

15 30 50 per page
1
2