Large Factorials
Large Factorials题目In mathematics, the factorial of integer n is written as n!. It is equal to the product of n and every integer preceding it. For exa ...
Recover a secret string from random triplets
Recover a secret string from random triplets题目There is a secret string which is unknown to you. Given a collection of random triplets from the string, ...
Twice linear
Twice linear题目Consider a sequence u where u is defined as follows:
The number u(0) = 1 is the first one in u.
For each x in u, then y = 2 * x + 1 and ...
Rot13
Rot13题目ROT13 is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. ROT13 is an example of ...
Greed is Good
Greed is Good题目Greed is a dice game played with five six-sided dice. Your mission, should you choose to accept it, is to score a throw according to th ...
The Hashtag Generator
The Hashtag Generator题目The marketing team is spending way too much time typing in hashtags.Let’s help them with our own Hashtag Generator!
Here’s the ...
Human Readable Time
Human Readable Time题目Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS ...
Snail
Snail题目Snail SortGiven an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.
1234arra ...
Strip Comments
Strip Comments题目Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of ...
Simple Encryption #1 - Alternating Split
Simple Encryption #1 - Alternating Split题目
For building the encrypted string:Take every 2nd char from the string, then the other chars, that are not e ...
