Linked Questions

-7
votes
1answer
786 views

What's 9+10? 21 [duplicate]

You know that 9+10 is 21, but someone challenges you saying that it isn't. You'll show them, though. Have your program print 21 in the shortest code length ...
0
votes
0answers
119 views

Coffeescript Generates 2014 [duplicate]

The following Coffeescript produces the number 2014 by loading the hexidecimal value 0xFBC and zero shifting it 1 bit to the right. In Coffeescript, "no" = 0 and "on"=1. ...
-2
votes
0answers
86 views

Print 9/19/19 without using 9/19/19 [duplicate]

Simple challenge: print the date (9/19/19, in this format) without using 9, 1, 9, or /.
419
votes
756answers
126k 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 ...
508
votes
229answers
112k views

Showcase of Languages

Notes This thread is open and unlocked only because the community decided to make an exception. Please do not use this question as evidence that you can ask similar questions here. Please do ...
386
votes
110answers
82k views

Most creative way to display 42

Douglas Adams was born on March 11, 1952, and died when he was just 49. In honor of this wonderful writer, I challenge you to display 42 in the most creative way possible. You could print it in the ...
89
votes
97answers
13k views

Code Golf Christmas Edition: How to print out a Christmas tree of height N

Given a number N, how can I print out a Christmas tree of height N using the least number of code characters? ...
86
votes
38answers
20k views

Tips for golfing in Java

Are there any useful shortcuts that can be used in Java? As shown below, import already adds at least 17 characters to a program. ...
24
votes
38answers
3k views

Reimplementing square root [duplicate]

Define a function, s, which takes a number and returns the square root. No use of library functions, such as Java's Math.sqrt() or PHP's built in sqrt(), allowed.
41
votes
15answers
5k views

Determine whether a number is 2017-friable without primes in your source code

Out of all the years I've been making this challenge, 2017 is the first year that's been a prime number. So the question will be about prime numbers and their properties. Your task is to produce a ...
27
votes
15answers
2k views

number of answers and comments

Write a software that prints on stdout the number of answers and the number of comments(visible and collapsed of question and answers) of this question/page. Your script must run with this page ...
23
votes
14answers
2k views

Recycling for the New Year

A good resolution for 2015 is to live more sustainably. We'll start by recycling. Recycling code, that is! Your task is to print the number 2015 to STDOUT, with or ...
28
votes
13answers
7k views

Tips for golfing in 05AB1E

Do you have any tips for code-golfing in 05AB1E, a golfing language created by Adnan? Your tips should be at least somewhat specific to 05AB1E. Please post one tip per answer.
18
votes
17answers
2k views

Build interpreter for non-existent language

Build an interpreter for a fake, stack-based language that gets an input, interprets it, and outputs the result as an array of numbers. It should iterate through each byte and perform a different ...
29
votes
9answers
2k views

Anti-golfscript anti-golf: create a task where GolfScript or J is outgolfed by your (conventional) lang [closed]

You need to make three things: Statement of a task, T. Solution of the task in language not typically used for golfing, A. Solution of the task in language typically used for golfing, B. Don't try to ...

15 30 50 per page