Click on an algorithm to check out its implementations!

Puzzle:

There are 100 doors in a long hallway. They are all closed. The first time you walk by each door, you open it. The second time around, you close every second door (since they are all opened). On the third pass you stop at every third door and ...

Puzzle: A Harshad Number, in a given number base, is an integer that is divisible by the sum of its digit when written in that base.

Write a function that returns whether an integer is a Harshad Number or not (in base 10).

Solution: Of the numbers ...

You must print the lyric of the song as follows:

``` 99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall. 98 bottles of beer on the wall, 98 ...

There is a pile of twelve coins, all of equal size. Eleven are of equal weight. One is of a different weight. In three weighings find the unequal coin and determine if it is heavier or ...

Tokenization may refer to: https://en.wikipedia.org/wiki/Tokenization

Tries may refer to: https://en.wikipedia.org/wiki/Tries

In the rail fence cipher, the plaintext is written downwards and diagonally on successive "rails" of an imaginary fence, then moving up when we reach the bottom rail. When we reach the top rail, the message is written downwards again ...