I recently posted an answer on the Hello, World question and after posting, discovered this answer claiming to do it in 18 bytes in brainfuck. I read through it and thought that it was completely wrong and so notified the OP in the comments. We then had a bit of an argument about whether this is...
Hexagonal chess describes a family of chess variants played on a board where the cells are hexagons instead of the traditional squares. There are many such variants; in this challenge we'll be focusing on Gliński's variant, which is the most common.
The board is composed of three colors (so that...
Your program / function, etc. will take 2 inputs. The first will be a list of who came to my party and when. Example:
Kevin 13:02
Ruby 5
Sam 3
Lisa 6
Bob 12
What does that mean? It means that Kevin got to my party first (at 13:02, 24-hour time), then Ruby 2 minutes later, then Sam 1 minute lat...
I mess around with weird things in the Sandbox all the time. As long as you don't flag things that don't need to be flagged, pretty much anything is fine
Since the interpreter just receives a byte stream, the code page is just a way of making that byte stream easier to read/understand.
You're just saying % means 0x6A (or whatever).
For convenience, it's probably a good idea to re-use existing symbols, so you can write in (say) UTF-8 and have your editor spit out the proper byte-stream.
Build a Digital Plotter
code-golf
Problem adapted from the book Fortran 77 by Donald M. Monro
Introduction
Digital plotting machines are widely used to produce various forms of drawings, graphs and other pictorial results. Most such machines can move their pens only in certain directions, usu...
This is a code-challenge where the objective is to sort a vector into ascending order using the fewest reversals. Your algorithm can only sort the vector using "sub-vector reversals"1, but it can use other operations for arithmetic operations, loops, checking if it's sorted etc. The number of sub...
@Riker What kind of unsaved work? A lot of the time you can safely close almost everything and the tab with the unsaved work will pop up an alert with "are you sure you want to navigate away?"
Your task is to write a program which, given a number and a string, splits the string into chunks of that size and reverses them.
Rules
Your program will receive a positive integer n, as well as a string s with length at least one consisting of only printable ASCII. The string should then be sp...
@Pavel They're your votes; you can distribute them how you want. Upvoting every answer in a short period of time may trigger a serial voting detection algorithm, but I don't think there's anything inherently wrong with it.
I work with a lot of people doing Electron Paramagentic Resonance. Most of the analysis is done though some kind of Matlab package which I'm often asked for some help with. As a joke, I therefore came up with a short snippet of code (see my answer below) I can quickly type into the command line a...
What's a good way to keep a bunch of unique strings (like a list of vocabulary words) in an easy to edit document? A single column spreadsheet kinda works but a lot of space is wasted and duplicate checking is not automatic.