The optimized-output tag has no wiki summary.
8
votes
1answer
300 views
Compact a Befunge program
Befunge is a 2-dimensional esoteric programming language. The basic idea is that (one-character) commands are placed on a 2-dimensional grid. Control flow walks across the grid, executing commands it ...
4
votes
1answer
238 views
How to encode shortest brainf_ck strings
This is an interesting one.
I have written a short program in objective-c to encode a string into a brainf_ck string, this is what it looks like:
NSString *input; // set this to your input string
...
2
votes
2answers
271 views
Turn 2D boolean array into (rectilinear) polygons
Challenge
Write a program which, given a 2-dimensional boolean array (equivalently, a monochromatic bitmap), outputs a series of polygons that describe the outline of the region that is “true” (1).
...
6
votes
9answers
469 views
Make a number palindrome
Write a function that takes a number as an argument and makes it a palindrome by appending minimum number of digits. The number will be at max of 100 digits.
Sample Inputs
12
232
2323
1012121
Sample ...
