Linked Questions

523 votes
1k answers
198k 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
200 votes
426 answers
79k views

1, 2, Fizz, 4, Buzz

Introduction In our recent effort to collect catalogues of shortest solutions for standard programming exercises, here is PPCG's first ever vanilla FizzBuzz challenge. If you wish to see other ...
Beta Decay's user avatar
  • 23.4k
80 votes
78 answers
16k views

Call a method without calling it [closed]

Inspired by a now deleted StackOverflow question. Can you come up with a way to get a particular method executed, without explicitly calling it? The more indirect it is, the better. Here's what I ...
user avatar
56 votes
93 answers
9k views

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

Challenge The goal is to output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. Context. (Maybe another interesting challenge could be printing all ...
Orangutan's user avatar
  • 757
28 votes
98 answers
19k views

Reciprocal of a number (1/x)

Challenge Given a (floating-point/decimal) number, return its reciprocal, i.e. 1 divided by the number. The output must be a floating-point/decimal number, not just an integer. Detailed ...
anna328p's user avatar
  • 6,414
41 votes
75 answers
11k views

What's my middle name?

Note: The winning answer will be selected on 4/12/17 the current winner is Jolf, 1 byte. I'm surprised that we haven't had a what's my middle name challenge on this site yet. I did alot of searching ...
user avatar
62 votes
48 answers
7k views

Are the brackets fully matched?

You must write a program or function that takes a string of brackets and outputs whether or not that string is fully matched. Your program should print a truthy or falsy value, and IO can be in any ...
DJMcMayhem's user avatar
  • 59.6k
25 votes
90 answers
8k views

Swapping "Good" and "Bad"

Challenge Description: Write a program that asks the user for input. The user will enter Good or Bad. You do not have to ...
Ishaq Khan's user avatar
27 votes
75 answers
7k views

Minimum excluded number

This is intended to be an easy, bite-size code-golf. The mex (minimal excluded number) of a finite collection of numbers is the smallest non-negative integer ...
xnor's user avatar
  • 147k
31 votes
55 answers
4k views

All together now

Given a list of digits 1 through 9, output whether each digit is grouped together as a single contiguous block. In other words, no two of the same digit are separated by different digits. It's OK if a ...
xnor's user avatar
  • 147k
23 votes
70 answers
3k views

Check if an array (or equivalent) has the same number of odd and even numbers - Code Golf Edition!

Inspired by this code review question, I am curious to see what happens if we turn that into a code-golf challenge! The description is easy, the input is an array or any similar data structure with ...
bracco23's user avatar
  • 431
70 votes
24 answers
8k views

Crack the bank account's password!

Introduction In order to prevent keyloggers from stealing a user's password, a certain bank account system has implemented the following security measure: only certain digits are prompted to be ...
cefel's user avatar
  • 741
46 votes
35 answers
4k views

Draw a bowling formation

Your goal is to display ASCII art of a formation in ten-pin bowling where only some of the pins remain. Fewest bytes wins. The tens pins are in a triangular formation: ...
xnor's user avatar
  • 147k
42 votes
18 answers
4k views

Garlandification

Garland Words A garland word is a word which can be strung together like a garland, because it ends with the same letters it starts with. These groups of letters can even overlap! For example, <...
Kade's user avatar
  • 7,873
38 votes
26 answers
3k views

ASCII clock with dot & comma time markers

Introduction Imagine that line of chars is in fact two rows. Upper row - dots - represents hours (24 hour system), while lower - commas - represents minutes. One character can represent hour, minute ...
Krzysiu's user avatar
  • 481

15 30 50 per page