Linked Questions

17 votes
10 answers

Sign change, loop and display with minimal padding

Input: Two integers: one negative, one positive. Output: On the first line output lowest to highest. On the second line we've removed the highest and lowest numbers and sign-changed all individual ...
Kevin Cruijssen's user avatar
55 votes
2 answers

Seriously, GolfScript, CJam, or Pyth?

Some time ago, the following question was asked: GolfScript, CJam, or Pyth? Based on the title only, I thought that it would be a very nice challenge, but unfortunately, it turned out to be a question ...
coredump's user avatar
  • 6,790
8 votes
12 answers

Rearranging a set of numbers into order

The Question Given a set of 9 numbers, m[], which contains only numbers 1 through 9 in a random order, with no two numbers being the same, create a program in any ...
Meow Mix's user avatar
  • 923
19 votes
8 answers

Hilbert-Curvify a Matrix

Inspired by this question Another way to unroll a 2D image into a 1D string is to use an Hilbert Curve. There are many version of this curve, depending on the number of iterations used while ...
WizardOfMenlo's user avatar
6 votes
13 answers


Notice the pattern in the below sequence: 0.1, 0.01, 0.001, 0.0001, 0.00001 and so on, until reaching 0.{one hundred zeros}1 Then, continued: ...
Buffer Over Read's user avatar
12 votes
13 answers

Iterated Dice Rolling

Given an input n where 3 <= n <= 25, perform the following steps, starting with a single ...
user avatar
19 votes
5 answers

Reverse-Engineer the N-Bonacci sequence[s]

EDIT: I will be accepting an answer Monday, 2/15/2016. May the bytes be ever in your favor! In his "Print the N-Bonacci Sequence" challenge, @DJMcGoathem describes the N-bonacci sequences, wherein ...
Cyoce's user avatar
  • 3,341
9 votes
7 answers

Detecting anagrams within a Parent String

Given two strings, a parent string and a query string respectively, your task is to determine how many times the query string, or an anagram of the query string; appears in the parent string, in a ...
Eliseo D'Annunzio's user avatar
8 votes
4 answers

Build a Simple Roguelike

This challenge is based on one proposed on the usenet group a few years ago. I can't find the original newsgroup post, but you can have a look a the Github repo of ...
Paul Prestidge's user avatar
12 votes
5 answers

Tips for restricted source in zsh

Adapted from tips for restricted-source in Python Just like code-golf, restricted-source pushes one to exploit quirks and hidden features of the zsh language. While we already have a place to collect ...
pxeger's user avatar
  • 23.9k

15 30 50 per page
1 2 3 4 5