Articles in this series
Problem Given a vector vec of n natural numbers (each number is in the range [1..n]), we need to return "missing" natural numbers that do not appear...
Problem Given a vector of non-negative integer numbers vec, arrange the numbers in a way that they form the largest possible number and return its...
Problem Given two positive integer numbers a and b, we need to find their common factors. A common factor of a and b is an integer number that divides...
Problem Given a non-negative integer number n, we need to find the pivot number. The pivot number p is a number such as the sum of all numbers [0..p]...
Problem Given a provided ASCII string str, we need to find the first unique (non-repeating) character. Examples: Input...
Problem Given a provided integer number n, we need to check whether this number is Ugly. Ugly numbers are a sequence of numbers whose only prime...