I made a language called Lost. As a fun programming exercise I tasked myself with making a program that would output the digits 0-9 all with equal probability. This was a difficult task, however I found a solution and had a lot of fun doing so. I thought this would make for a good challenge fo...
Birthday palindromic numbers
Warning : this is NOT a "hey, let's draw a cake in ASCII-art" challenge! Please keep reading ;)
Some time ago it was my birthday, I'm 33 now.
So there is this awkward social tradition consisting in inviting family and friends, putting number-like candles on a cake...
Hi, new here, question about etiquette: what's an acceptable way to suggest a golf improvement to someone's answer when still below 50 rep? I don't want to make a new answer as it's a minor change, but can't comment.
Inspired by this Stack Overflow question: Sorting a list: numbers in ascending, letters in descending. Your task is to solve the following problem and, as this is code-golf, you should do so in as few as bytes as possible.
You should take a list of objects as input containing letters (any reason...
This puzzle asks for the distance travelled and time managed. How?
Puzzle Located here:
https://www.flickr.com/photos/153009216@N05/albums/72157679628458322
Ask: How do you get from Point A to Point B? In 2012 from Best western to Best western without Maps?
Puzzle located here:
https://www.flickr.com/photos/153009216@N05/sets/72157678397870123
Given an unsigned 16-bit integer N, your task is to determine whether its binary representation mapped inside a 4x4 matrix is matching a tetromino shape, and if so, which shape it is.
Matrix
Each bit of N is mapped inside a 4x4 matrix, from left to right and from top to bottom, starting with th...
Pascal's triangle is generated by starting with 1 and having each row formed from successive additions. Here, instead, we're going to form a triangle by alternating multiplication and addition.
We start row 1 with just a solitary 1. Thereafter, addition is done on the odd rows, and multiplicati...
Alarm Optimization
code-golf date path-finding
My Alarm Clock
I'm American, and so is my (digital) alarm clock. To set the alarm, it starts at the time it was previously. Hitting the hour button moves it up one hour, and hitting the minute button moves it up one minute. Hitting both buttons at...
A cruise control has 3 different options to move the handle to set the speed you want to drive with.
Towards you: Adds 1 speed.
Upwards: Increases speed to the next multiple of 10 (e.g. 20-->30, 32-->40)
Downwards: Decreases speed to the next multiple of 10 (e.g. 20-->10, 32-->30)
Input
2 i...
Given a string of ASCII letters (upper and/or lower case), output the raw MathJax required to display that string bifurcating at each character, into superscripts and subscripts. For example, the inputs cat and horse would result in outputs which MathJax renders as the following, respectively:
...
My Alarm Clock
I'm American, and so is my (digital) alarm clock. To set the alarm, it starts at the time it was previously. Hitting the hour button moves it up one hour, and hitting the minute button moves it up one minute. Hitting both buttons at the same time resets it to midnight (12:00 am), ...