Programming Puzzles & Code Golf newsletter

2016 Community Moderator Election

The community moderator election is currently in the election phase.

Please cast your vote by April 5!

Top new questions this week:

Tweetable hash function challenge

In this code-challenge you will write a hash function in 140 bytes1 or less of source code. The hash function must take an ASCII string as input, and return a 24-bit unsigned integer ([0, 224-1]) as ...

code-challenge restricted-source hashing  
asked by orlp 54 votes
answered by kasperd 18 votes

Stretch the word

The input is a word of lowercase letters not separated by whitespace. A newline at the end is optional. The same word must be output in a modified version: For each character, double it the second ...

code-golf string counting  
asked by mIllIbyte 36 votes
answered by Dennis 25 votes

Shortest code for infinite disk I/O

(Just open 50 tabs in Google Chrome :D (just kidding, no you can't)) Shortest code for infinite disk I/O any language, C# example: using System.IO; namespace FileApp { static class Program { ...

code-golf  
asked by MathuSum Mut 36 votes
answered by Daniel 28 votes

Unlocking the Secrets to a 1-Dimensional Labyrinth

Background You awake to find yourself lost in a one dimensional labyrinth! A mystical genie (or something) appears and explains that the exit lies in front of you, but that between you and the exit ...

code-golf string  
asked by turbulencetoo 36 votes
answered by aditsu 2 votes

Passwordify the string

Your challenge is to passwordify the string! What is passwordifying, you ask? Take a string as input. This string will only contain uppercase letters, lowercase letters, digits, and spaces. You ...

code-golf string random  
asked by Dopapp 32 votes
answered by Sp3000 22 votes

A Tiny Explorer

You are an explorer, mapping an unknown world. Your ship is carried on the wind. Where it goes, who knows? Each day, in your spyglass, you see features to the north, south, east and west. You always ...

code-golf ascii-art puzzle-solver  
asked by user52676 30 votes
answered by Luis Mendo 8 votes

Help me sort my socks!

I have a pile of clean socks that I want to sort into pairs. Unfortunately, I can only take socks from either end of the pile, not the middle. Further, I can only remove socks from the pile a matching ...

code-golf  
asked by Carmeister 29 votes
answered by isaacg 5 votes

Greatest hits from previous weeks:

Create output twice the length of the code

The Challenge Write a complete program that writes twice as many bytes to standard output as the length of the program. Rules The program must write ASCII characters to the standard output. The ...

code-golf quine  
asked by Daniel M. 42 votes
answered by randomra 90 votes

418: I'm a teapot

As we all should know, there's a HTTP status code 418: I'm a teapot. Your mission, should you choose to accept it, is to use your creativitea and write the smallest possible server that responds with ...

code-golf internet  
asked by Nit 55 votes
answered by manatwork 34 votes

Can you answer these?

Make a Strawpoll

Strawpolls are great, and we use them in chat all the time for getting opinions on things. But they're kinda annoying to make since you need a webbrowser to make them, and everyone knows that I access ...

code-golf internet  
asked by Maltysen 7 votes

Where will the cat go?

A nearly massless cat is dropped in space (don't worry, with a space suit and everything) at the point (x, y, z) with velocity (vx, vy, vz). There is an fixed, infinitely dense planet (with volume of ...

code-challenge math  
asked by soktinpk 6 votes

Shortest code to secure wipe a disk

As you can tell from this question and my previous one, I am determined to kill my SSD. Let's write the shortest code to perform a simplified variant of the DoD 5220.22-M Wipe Method with only two ...

code-golf  
asked by MathuSum Mut 2 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3