
fridayTheThirteen
Is Friday the 13th really an unusual event? That is, does the 13th of the month land on…
greatestInteger
Given 2 very big integers n and k which are represented as 2 stringsFind the greatest integer which less…
wordSquare
A Word Square is a set of words written out in a square grid, such that the…
simplePowers
Given two numbers a and b, perform the following operations: let M = 109 + 7; compute x = (ab + ba)…
powersOfTwo
Mr. Privalov has a number k and an array of n elements, each element of which is the power…
primiest
Lets call a prime number the primiest if all of its digits are also prime. You are given an…
sumOfThrees
Given a number n, return a string representing it as a sum of distinct powers of three, or…
oddDivisors
Ram likes coding very much. One day his Girlfriend Sita was kidnapped by a mobster…
comparePowers
Do you know what number is larger, 210 or 215? Of course you do. What about, say 210 and …