0
votes
0answers
6 views

print text with no chars

Mission is write a program that prints "Hello World!". Simple? Text must be human readable and should not be "|-| € |_ |_ 0 // 0 |? |_ |) \./" or something like that Program should not contain: ...
3
votes
0answers
30 views

Program that permutes itself to encode a string (quine-variant)

Write a program that prints the following 80-character line: This program from codegolf.stackexchange.com permutes itself to encode a string. then accepts one line of input, then prints its ...
8
votes
1answer
78 views

The Easter Egg Hunt on the Hill

Easter Egg Hunt Bot find egg before bunny find egg. Bot happy. Overview This is a king-of-the-hill challenge in honor of Easter and the Easter egg hunting tradition! Your bot has a vision of two ...
1
vote
1answer
59 views

Convert image pixels to quadruples [on hold]

Example given an image which width and height is a power of two . First step : Divide each image into Cartesian coordinate quadrants _____ _____ | | | | 2 | 1 | |_____|_____| | | ...
8
votes
1answer
101 views

Where will the ball land?

Given a string where the first line contains spaces and one period (., the "ball"), followed by lines containing spaces, forward slashes (/), and backslashes (\), determine what column the ball will ...
16
votes
3answers
359 views

Draw the shadows of buildings

Input: 1 X X X X XX XXXXXX X X X X XX XXXXXX ...
4
votes
0answers
60 views

Using dictionaries, thesauruses, and similar databases, construct as large of a “See also” loop as possible [on hold]

As I'm sure many of you know, synonyms can range from very similar to not-so-similar-but-I-can-see-how-it's-similar. It's common for dictionaries to use "See also" to denote occurrences of words that ...
2
votes
4answers
169 views

Find all reachable nodes in a graph

You are given a directed graph in an adjacency dictionary format. This can be whatever format is most natural for your language. For instance, in python, this would be a dictionary with keys of nodes ...
-4
votes
0answers
81 views

Fun & simple puzzles/games for kids [on hold]

I'm going to be running a week-long programming 'camp' this summer for a group of middle school students and am trying to brainstorm some fun ideas. We'll meet four hours a day for five days, and none ...
8
votes
6answers
669 views

Shortest code to sort walking points

The challenge is to, given a list of points, sort in a way that, when they are connected in this order, they never intersect. Input format (read from stdin): X Y 1 2 3 4 5 6 ... Output should be ...
-2
votes
0answers
53 views

Selecting movie times at the cinema [on hold]

Suppose that I am planning a trip to the cinema. I have a list of n movies (where n > 2) that I want to see, along with lists of their start times and lengths, and an idea of how long the ads and ...
-4
votes
6answers
93 views

Remove Duplicates From One List [on hold]

Task: Remove all duplicates from one list. This is a [code-golf] challenge, so shortest answer wins! You only have to remove the duplicates and present it in a form of a list. You don't have to output ...
25
votes
12answers
3k views

Maze Generation

I know there is an (old) thread similar to this (here), but I'd like to reboot it with some modifications. The goal: generate a random-looking maze using an algorithm of your choice, then output the ...
-6
votes
3answers
153 views

Challenge to generate a mathematical sequence [on hold]

I challenge you to generate the following sequence. 1 2 3 4 5 11 17 23 29 35 76 117 158 199 240 281 603 925 1247 1569 1891 2213 ......N Th term N will be only Input in your code(Any Language) ...
17
votes
22answers
3k views

Valid Through The Ages

Inspired by this question on SO, your task is to produce a program that is valid in (at least) two major versions of your chosen language that produce different output. Rules Any language that has ...
-2
votes
9answers
343 views

I challenge you to generate the following sequence [on hold]

I challenge you to generate the following sequence till 100 terms through any programming language in shortest characters possible. The sequence is like this :- 1 2 3 4 5 10 20 30 40 50 100 200 300 ...
14
votes
17answers
2k views

Draw a regular polygon

The goal of this code golf is to draw a regular polygon (one with equal side lengths) given the number of sides and radius (distance from center to vertex). The number of sides and the radius can be ...
15
votes
4answers
1k views

Finish lazy parentheses

The parentheses on my keyboard are all worn out, and I want to avoid using them as much as possible. Your challenge is to balance a line containing parentheses by adding them in before and after each ...
4
votes
1answer
182 views

Moving CSS rules from a CSS file to inline attributes

The goal is to take CSS rules from a regular CSS file and apply them to their respective targets in an HTML file, but by placing the rules in the style="" attribute (using the <style> tag would ...
-5
votes
0answers
52 views

Biological Network [closed]

Suppose you have a gene correlation network clustered using hierarchical clustering methods, and clusters stored in different files. So every file is a list of genes. Now I have a list of genes ...
17
votes
8answers
971 views

One Letter Swap

The largest forum on the web, called postcount++ decided to make a new forum game. In this game, the goal is to post the word, but the word has to have one letter added, removed, or changed. Your boss ...
31
votes
3answers
767 views
+200

Hunger Gaming - Eat or Die

Hunger Gaming - Eat or Die If you don't eat, you die. If you eat, you live (until you die). You will die, so try to die last. Overview There is an island populated with a herd of prey animals. You ...
8
votes
3answers
550 views

Gravity Controls

Your task is to find the total destination of objects that are falling to a planet, you will get inputs like this: 7 ...#... ....... #..O..# ....... ...#... ....... ....... where O is the ...
-2
votes
0answers
128 views

Parameter passing exercise [closed]

Task Write a program that behaves differently according to how the compiler approaches parameter passing. Treat these cases as imaginary: "if I had a compilator that passes by reference" or "if the ...
14
votes
3answers
761 views

Evolution of the 'x'

Given is a board of variable size with a maximum size of 5 times 5 fields. Every field kann be filled with an 'x'. If it is not filled with an 'x', it is filled with an 'o'. The starting state of ...
0
votes
2answers
176 views

Let us make a quine maker!

You are to create a program, that, given another program, and a position, will make it a quine. Namely, it needs to insert an expression at that point that evaluates to a string that is the programs ...
5
votes
6answers
329 views

Generate random PESEL number

From Wikipedia: PESEL is the national identification number used in Poland since 1979. It always has 11 digits, identifies just one person and cannot be changed to another one. It has ...
16
votes
1answer
373 views

King of the Hill: Speed Clue AI

This is my first time authoring a programming challenge. If other people enjoy this, I might take a crack at some more. I hope the problem description is not too long... Goal Your goal is to ...
1
vote
1answer
104 views

HQ9+ Interpreter or Quine? [duplicate]

Write an interpreter for HQ9+ in your favourite programming language with the following quirk: If the input to the interpreter is empty or not a valid HQ9+ program (i.e. contains other characters than ...
-3
votes
0answers
71 views

Regex to match properly formed regexes [closed]

Create a regex that will match any properly formed regex. Shortest regex wins. Bonuses: -50% if it matches all valid regexes except itself. You will write your regex in POSIX extended. The ...
6
votes
10answers
398 views

Generate the python dictionary of phone keypresses for any letter

In the fewest bytes, generate the dictionary of keypresses for any letter (as described in https://code.google.com/codejam/contest/351101/dashboard#s=p2) In Python, the dictionary literal itself: ...
1
vote
5answers
194 views

Set Theory Operations Union Only [closed]

My obsession with set theory continues. I believe that most programming languages have neither sets as possible structures nor set theory operations such as Union and Intersection. If I am wrong then ...
2
votes
0answers
132 views

Generate ASCII art from text [closed]

Your challenge is to write a program which creates ASCII art from an input string, like FIGlet or the Unix banner utility. Specifically, your program should take as input a string consisting of ...
6
votes
0answers
401 views

Detect heartbleed exploit in the shortest amount of code [closed]

How little code do you need to detect the now infamous TLS Handshake bug? Any language goes. Brief information about the bug: The Heartbleed bug allows anyone on the Internet to read the memory ...
40
votes
64answers
12k views

Output Pi without math

In as few bytes as possible, your job is to write a program that outputs: 3.14 In celebration of a late Pi day of course! :) Rules You can do it anyway you like, but there are some restrictions. ...
13
votes
15answers
1k views

Length of String Using Set Theory

From Wikipedia Set-theoretic definition of natural numbers The set N of natural numbers is defined as the smallest set containing 0 and closed under the successor function S defined by S(n) = n ...
47
votes
37answers
7k views

My daughter's alphabet

The other day we were writing sentences with my daughter with a fridge magnet letter. While we were able to make some(I love cat), we didn't have enough letters to make the others (I love you too) due ...
-1
votes
11answers
501 views

Count the unique fractions with only integers

Count the number of unique fractions with numerators and denominators from 1 to 100, and print the counted number. Example: 2/3 = 4/6 = ... Rules: You must actually count in some way. Only integers ...
2
votes
2answers
93 views

Mex table generation [duplicate]

There is a table (the matrix one, not the one in your kitchen) called the "mex table". It has a left-top cell, at coordinates (0,0), but extends to infinity rightwards and downwards. The x-coordinate ...
-2
votes
2answers
84 views

All possible permuations in lexicographical order [duplicate]

Given a string of English alphabet characters, write the shortest code to print all possible permuations in lexicographical order without using any language based library. def function('bca'): ...
16
votes
3answers
1k views

aHHHH! The Beasts are HHHHere!

As we learned from the IBM PC AT, YouTube (see video), Wikipedia (see article), and Sesame Street: The letter H is the most merciless letter of the alphabet! (Even when actually composed from two ...
13
votes
27answers
1k views

Output the nth digits of an integer

Without using strings (except when necessary, such as with input or output) calculate the nth digit, from the left, of an integer (in base 10). Input will be given in this format: 726433 5 Output ...
23
votes
6answers
803 views
+100

Hangman solver king-of-the-hill

You are required to write a Hangman solver. Testing against this English word list[1], the solver that solves the most number of words wins, with the number of total incorrect guesses being the ...
14
votes
32answers
2k views

8 adjacent squares

List the coordinates of 8 squares adjacent to (0, 0) in a 2d grid. Namely, [(1,-1),(1,0),(1,1),(0,1),(-1,1),(-1,0),(-1,-1),(0,-1)] Order does not matter. The goal is to store the points into a ...
10
votes
3answers
185 views

Build a bit-counting comparator using NAND logic gates

A bit-counting comparator (BCC) is a logic circuit that takes some number of counting inputs A1, A2, A3, ..., An as well as inputs B1, B2, B4, B8, ... representing a number. It then returns 1 if the ...
-5
votes
1answer
125 views

Shortest code to generate 2D coordinates

I'm looking for the shortest code to generate the following sequences: Sequence A i | y x 0 | 0 0 1 | 0 1 2 | 1 0 3 | 1 1 The best I have is x = i % 2, y = i / 2, there is probably no beating that. ...
7
votes
20answers
801 views

Merge two sorted lists

Merge Sort In this challenge, you will implement the merge subroutine of merge sort. Specifically, you must create a function or program or verb or similar which takes two lists, each sorted in ...
10
votes
7answers
2k views

Determine if a number is prime without using arithmetic [duplicate]

Write a program which determines if a given number is prime. The catch: No digits or arithmetical operators. This means: No digits from 0 to 9, anywhere in the program, and whatever the meaning No ...
19
votes
3answers
766 views

Hiding information in Cats

You are a secret agent trying to communicate with your fatherland. Of course the information needs to be hidden so no one eaves drops your message. What would be better suited than a cat? Everyone ...
17
votes
11answers
2k views

Roll Dungeons and Dragons dice

I want to play Dungeons and Dragons, but I don't have any dice! Your challenge is to roll some D&D dice. The input format specification in Backus-Naur form is: <valid-input> ::= ...

15 30 50 per page