Top new questions this week:
|
Note: This question was severely edited since I first posted it here. The rules were moved to here, read them before posting any answer to understand the purpose of this. This was the first question …
|
edit: Due to the awesome response and the unhappiness from the folks who closed this question, it's going to take me a while to modify and mark the rest of the submissions. See you soon!
The 9 Hole …
|
So, now that it's 2014, it's time for a code question involving the number 2014.
Your task is to make a program that prints the number 2014 without using any of the characters 0123456789 in your …
|
The problem:
I am the lead developer for a big company, we are making Skynet. I have been assigned to
Write a function that inputs and returns their sum
RULES:
No answers like
…
|
Requirements
For the sake of the challenge let's define a unit:
A unit is defined as any point that compose the grid in which the face is drawn (pixels for screen, characters for ASCII art, …
|
The challenge:
Make a function that finds the longest palindrome inside a string.
Note: This is a code-trolling question. Please do not take the question and/or answers seriously. More …
|
Write a function that contains five lines.
If you run the function as-is, it should return 0.
If you remove any one of the five lines and run the function, it should tell you which of the lines has …
|
Greatest hits from previous weeks:
|
Shortest code that returns Segmentation Fault (SIGSEGV) in any programming language.
|
Write the shortest program that solves Rubik's cube (3*3*3) within a reasonable amount of time and moves (say, max. 5 seconds on your machine and less than 1000 moves).
The input is in the format:
…
|
Can you answer these?
|
The goal is to write a full program that emulates the Universal Machine from ICFP 2006 with the shortest code. The Universal Machine has a very simple instruction set explained here. The emulator has …
|
I'm a bit of a romantic, I love taking my wife out to see the sunrises and sunsets in the place we are located. For the sake of this exercise let's say I don't have code that can tell me the time of …
|
Note: This is a code-trolling question. Please do not take the question and/or answers seriously. More information here.
The point of this puzzle is to learn how a malicious code can be hidden and …
|