rosetta-stone Questions

6

Solved

The challenge The shortest code by character count that will output the numeric solution, given a number and a valid string pattern, using the Ghost Leg method. Examples Input: 3, "| | | ...
Mythomania asked 27/4, 2010 at 13:18

15

Solved

The challenge: The shortest code by character count that will generate a series of (pseudo)random numbers using the Middle-Square Method. The Middle-Square Method of (pseudo)random number g...
Syzygy asked 23/4, 2010 at 23:19

9

Solved

Based on this question: Is there a way to round numbers into a friendly format? THE CHALLENGE - UPDATED! (removed hundreds abbreviation from spec) The shortest code by character count that ...

15

Usual rules for the code golf. Here is an implementation in python as an example from PIL import Image im = Image.new("RGB", (300,300)) for i in xrange(300): print "i = ",i for j in xrang...
Zoochemistry asked 14/4, 2010 at 16:45

7

Solved

Note: This is my first Code Golf challenge/question, so I might not be using the correct format below. I'm not really sure how to tag this particular question, and should this be community wi...
Authoritarian asked 2/4, 2010 at 17:24

10

What's more appropriate than a Spiral for Easter Code Golf sessions? Well, I guess almost anything. The Challenge The shortest code by character count to display a nice ASCII Spiral made of...
Alexia asked 1/4, 2010 at 20:45

16

Solved

You may remember these drawings from when you were a child, but now it's time to let the computer draw them (in full ascii splendour). Have fun! Description: The input are multiple lines (t...
Stefa asked 26/3, 2010 at 23:37

26

Solved

The Challenge Guidelines for code-golf on SO The shortest code by character count to display a representation of a circle of radius R using the *character, followed by an approximation of π...
Talebearer asked 13/3, 2010 at 22:38

23

Solved

This is inspired by/taken from this thread: http://www.allegro.cc/forums/thread/603383 The Problem Assume the user gives you a numeric input ranging from 1 to 7. Input should be taken from ...
Noakes asked 9/3, 2010 at 5:2

70

Inspired by http://xkcd.com/710/ here is a code golf for it. The Challenge Given a positive integer greater than 0, print out the hailstone sequence for that number. The Hailstone Sequenc...
Chairman asked 5/3, 2010 at 16:27

35

Solved

Post your shortest code, by character count, to check if a player has won, and if so, which. Assume you have an integer array in a variable b (board), which holds the Tic Tac Toe board, and ...
Jadwiga asked 11/2, 2010 at 16:13

22

Solved

The challenge The shortest code by character count to output a part of a piano keyboard starting from input note in a given length. Input will be composed of a note ([ACDFG]#|[A-G]) to star...
Pasteboard asked 4/2, 2010 at 20:22

12

Solved

The challenge The shortest code by character count to solve the input lights out board. The lights out board is a 2d square grid of varying size composed of two characters - . for a light t...
Subcontract asked 25/12, 2009 at 1:1

9

Solved

The challenge The shortest code by character count to output a best-case blackjack hand from the list of number-cards given. Input is a list of numbers from 1 to 10 (inclusive) separated by...
Larios asked 3/12, 2009 at 21:52

19

Solved

The Challenge The shortest code by character count to output Ulam's spiral with a spiral size given by user input. Ulam's spiral is one method to map prime numbers. The spiral starts from the...
Veroniqueverras asked 26/11, 2009 at 21:42

12

Solved

Ok guys, today's goal is to build a Turing machine simulator. For those that don't know what it is, see the Wikipedia article. The state table we are using today is found at the end of the Fo...
Chrysolite asked 22/11, 2009 at 2:11

4

Solved

The challenge The shortest code by character count to identify and mark water depressions in the ASCII representation of a land from input. Input will be an ASCII representation of a landsc...
Saree asked 19/11, 2009 at 21:24

21

Solved

The challenge The shortest code, by character count to output an ASCII representation of Sierpinski's Triangle of N iterations made from the following ASCII triangle: /\ /__\ Input is a...
Wiencke asked 13/11, 2009 at 2:11

13

Solved

The challenge The shortest code by character count to output an hourglass according to user input. Input is composed of two numbers: First number is a greater than 1 integer that represents...
Severally asked 5/11, 2009 at 21:43

15

Solved

The challenge The shortest code by character count to output a spider web with rings equal to user's input. A spider web is started by reconstructing the center ring: \_|_/ _/ \_ \___/ ...
Josefajosefina asked 29/10, 2009 at 22:7

13

Solved

The challenge The shortest code by character count, that will output playing bricks tower series according to user input. The input will be a series of numbers (positive, negative and zero)...
Beaverette asked 22/10, 2009 at 20:15

12

Solved

The challenge The shortest code by character count, that will output musical notation based on user input. Input will be composed of a series of letters and numbers - letters will represen...
Strop asked 15/10, 2009 at 21:11

14

Solved

The challenge The shortest code by character count that will generate a beehive from user input. A beehive is defined a a grid of hexagons in a size inputted by the user as two positive num...
Chablis asked 8/10, 2009 at 19:50

28

Solved

The challenge The shortest code by character count to input a 2D representation of a board, and output 'true' or 'false' according to the input. The board is made out of 4 types of tiles: # ...
Bonkers asked 25/9, 2009 at 23:55

23

Solved

In Google Code Jam 2009, Round 1B, there is a problem called Decision Tree that lent itself to rather creative solutions. Post your shortest solution; I'll update the Accepted Answer to the ...
Foti asked 16/9, 2009 at 14:17

© 2022 - 2024 — McMap. All rights reserved.