
firstMultiple
Find the smallest integer not less than the given limit which is divisible by all…
smallestUnusualNumber
Let's call an integer unusual if the sum of its digits is larger than the product of…
cakeSlice
A cake is sliced with n straight lines. Calculate the maximum number of pieces the cake can have. Example: For n=0,…
findRange
Given the array of positive integers and the integer n, find whether there is a range of length…
maxNumberOfTerms
For a given n find the maximum number k, such that n can be represented as the sum of k different natural…
withdraw
An ATM ran out of 10 dollar bills and only has 100, 50 and 20dollar bills. Given an amount between 40 and 1000 dollars (inclusive)…
isPairMult
Given a sorted array and an integer as inputs, determine if there is a pair…
regionCount
You are given a string s containing uppercase Latin letters ['A'-'Z']. Each letter can divide a plane into…