Questions tagged [algorithm]
For challenges related to creating or implementing an algorithm.
6 questions
37
votes
21
answers
4k
views
The Original Number
Guidelines
Scenario
John has an important number, and he doesn't want others to see it.
He decided to encrypt the number, using the following steps:
His number is always a non-decreasing sequence (ie. ...
37
votes
14
answers
21k
views
The fastest Sudoku solver
Winner found
It seems as if we have a winner! Unless anyone plans on contesting the world's current fastest Sudoku solver, user 53x15 wins with the staggeringly fast solver Tdoku. For anyone still ...
27
votes
52
answers
4k
views
Shortest Code to Find the Smallest Missing Positive Integer
Description
Given an unsorted array of integers, find the smallest positive integer that does not appear in the array. Your task is to write the shortest code possible to solve this problem.
Input
A ...
23
votes
23
answers
4k
views
Upside-Down Pyramid Addition...REVERSED! [closed]
Upside-Down Pyramid Addition is the process of taking a list of numbers and consecutively adding them together until you reach one number.
When given the numbers ...
21
votes
25
answers
3k
views
Climbing the Bookshelf
Introduction
You're making a robot that can navigate a set of books of varying heights. It can climb books and jump off books, but if the distance is too big it will stop to prevent damage. To figure ...
7
votes
2
answers
295
views
Create a version series
The Definition
Given an integer x, a version series is a set of digits (base 10) from which any x-length subset of consecutive ...