Skip to main content

Questions tagged [algorithm]

For challenges related to creating or implementing an algorithm.

Filter by
Sorted by
Tagged with
37 votes
21 answers
4k views

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. ...
aimorris's user avatar
  • 1,431
37 votes
14 answers
21k views

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 ...
maxb's user avatar
  • 7,017
27 votes
52 answers
4k views

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 ...
aitzazisstuffed's user avatar
23 votes
23 answers
4k views

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 ...
Whimpers's user avatar
  • 355
21 votes
25 answers
3k views

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 ...
Ginger's user avatar
  • 6,116
7 votes
2 answers
295 views

The Definition Given an integer x, a version series is a set of digits (base 10) from which any x-length subset of consecutive ...
Addison Crump's user avatar