Linked Questions

15
votes
7answers
911 views

Get me out of here

Challenge Given a grid size, obstacles' positions, player position and target position your task is to find a path for the player to get to the target and avoid the obstacles at the same time (if ...
26
votes
6answers
2k views

The sequence is too meta

We start with a blank 1-indexed sequence: _,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,... In the nth step, we fill in every a(n) blanks with the integers ...
27
votes
5answers
594 views

Bubble the brackets!

There are a few questions on this site about balancing brackets, and checking whether brackets are balanced. I propose it's now time to use those balanced brackets for something! In mathematics and ...
26
votes
5answers
740 views

The Traveling O

The world is a five by five array of cells. It wraps on all sides. It can be visualized like... XXXXX XXXXX XXOXX XXXXX XXXXX You are an O. You love to travel the world, and you do so according to ...
22
votes
5answers
450 views

Swap program halves to test divisors

Four integer sequences In this challenge, you will test four different properties of a positive integer, given by the following sequences. A positive integer N is perfect (OEIS A000396), if the sum ...
20
votes
5answers
646 views

Find the missing number in an undelimited string

The challenge is to identify the missing number in a string of undelimited integers. You are given a string of digits (valid input will match the regular expression ...
17
votes
5answers
1k views

Fastest tweetable integer factorizer

The task is to find a non-trivial factor of a composite number. Write code that finds a non-trivial factor of a composite number as quickly as possible subject to your code being no more than 140 ...
16
votes
4answers
760 views

Tuple addition in pointfree

What is the shortest way we can express the function f(a,b)(c,d)=(a+c,b+d) in point-free notation? pointfree.io gives us ...
12
votes
4answers
2k views

Shortest path for a chess knight

Your program should compute the number of moves it takes a chess knight to reach each square of the chess board. The input will be two space-separated integers representing coordinates of the ...
16
votes
3answers
392 views

Harmonious “Convergence”

The Alternating Harmonic Series is a well known convergent series. "Clearly", it is obvious that it converges to the natural log of 2. Or does it? Since the series is not absolutely convergent, by ...
8
votes
3answers
625 views

2D Dungeon Crawler

Your program has to take a multi-lined string, like this: ############# # # # p # # # ############# ...
6
votes
3answers
176 views

Chiral three dimensional texts

Two dimensional chiral objects are not chiral in three dimensional space. This is because you can flip them over which is equivalent to taking the mirror image unlike in two dimensions where only ...
10
votes
2answers
290 views

The one counting challenge to rule them all!

Background Mathematicians are interested in all kinds of algebraic structures, e.g. groups, rings, boolean algebras. Generally, we have several operations (addition, multiplication, meet, join, etc.), ...
10
votes
2answers
401 views

The Lonely Islands

Input: A 2D array containing two distinct (optional) values. I'll use 0 and 1 when explaining the rules. The input format is of course flexible. Challenge: Zeros are water, and ones are islands. In ...
7
votes
2answers
632 views

insertspacesbetweenwords

In this challenge, your input is a string of lower-case letters like this: insertspacesbetweenwords and a dictionary like the that from my other challenge. You ...

15 30 50 per page
1
2 3 4 5
8