103 questions linked to/from Tips for golfing in <all languages>
3k views

### Build ASCII Podiums

In sporting competitions, it often happens that winners are presented on podiums, with the first-place person on the highest in the middle, the second-place person on the middle height to the left, ...
2k views

### Divide the work [duplicate]

There is a job which can be decomposed into x equally-sized smaller tasks. You have a team of size y <= x, where every member ...
1k views

### There's an echo in my array... echo in my array... my array

Help! I seem to have an annoying echo in some of my arrays, and I'd like to get rid of it. When this occurs, the original array repeats itself somewhere in the middle causing the values to be added ...
2k views

### Room Number Locator

Room Number Locator I have come across an interesting problem solving technique at my job when given the wrong room number from a colleague for a meeting. Every now and then, while on the way to a ...
3k views

### It was just an input-bug

Continuing my It was just a bug challenge: Input: A string consisting of printable ASCII characters without white-spaces nor new-lines. Output: First turn the input into a palindrome by reverting the ...
2k views

### Where am I now?

Where am I now? Given a string d, containing only the letters NSWE, determine the coordinates I've traveled (from left to right, ...
1k views

### Parse a Baseball Pitch String

Take an arbitrarily sized string as input. This string represents a baseball plate appearance, in which each character represents a pitch as follows: Strike: S ...
2k views

### Hitting 495 (Kaprekar) [duplicate]

Input: A three digit number from stdin or as an argument not all digits are the same may start with one or two zero's Process Order the input-digits ascending and descending to form two new ...
2k views

### It's as easy as 1,2,3 (except you have to add them up)

Let's consider a list $L$ (initially empty) and a pointer $p$ into this list (initialized to $0$). Given a pair of integers $(m,n)$, with $m\ge 0$ and $n>0$: We set all uninitialized ...
1k views

### Expand and Contract

Take a positive integer $k$ as input. Start with $n := 1$ and repeatedly increase $n$ by the largest integer power of ten $i$ such that $i \le n$ and $i + n \le k$. Repeat until $n = k$ ...
4k views

### Name of Frankenstein's Monster

Introduction: Since it's almost Halloween, I was just thinking of some random Halloween-themed challenges. Eventually I was reading through Frankenstein's wikipedia page, and came across the following ...
972 views

### Tips for golfing in Tcl

What general tips do you have for golfing in Tcl? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Tcl (e.g. "remove comments" is not ...
1k views

### Tips for golfing in Whitespace

What general tips do you have for golfing in Whitespace? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Whitespace (e.g. "remove ...