Linked Questions

15
votes
7answers
921 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 ...
18
votes
6answers
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 ...
27
votes
5answers
606 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
746 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
461 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
676 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
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
5answers
722 views

Dominate a zero-sum game

Consider a zero-sum game with 2 contestants. Each round, each contestant chooses, independently of each other, one of \$n \ge 2\$ different choices. Depending on the two chosen choices, one player is ...
17
votes
4answers
820 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 ...
16
votes
3answers
398 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
677 views

2D Dungeon Crawler

Your program has to take a multi-lined string, like this: ############# # # # p # # # ############# ...
6
votes
3answers
181 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 ...
11
votes
2answers
300 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
404 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
641 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