## Build a pile of Cubes in Kotlin

The challenge Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a… Read More »Build a pile of Cubes in Kotlin

The challenge Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a… Read More »Build a pile of Cubes in Kotlin

The challenge Consider the sequence U(n, x) = x + 2x**2 + 3x**3 + .. + nx**n where x is a real number and n a positive… Read More »Which x for that sum in Kotlin

The challenge Given a set of numbers, return the additive inverse of each. Each positive becomes negatives, and the negatives become positives. The solution in… Read More »Invert values in Kotlin

The challenge A number system with moduli is deﬁned by a vector of k moduli, [m1,m2, ···,mk]. The moduli must be pairwise co-prime, which means that, for… Read More »Moduli number system in Kotlin

The challenge Given an array X of positive integers, its elements are to be transformed by running the following operation on them as many times… Read More »Smallest possible sum in Kotlin

The challenge Given a semi-inclusive interval I = [l, u) (l is in interval I but u is not) l and u being floating numbers (0 <= l < u), an integer n… Read More »Floating-point Approximation in Kotlin

The challenge Create an NxN multiplication table, of size provided in parameter. for example, when given size is 3: for given example, the return value should be: [[1,2,3],[2,4,6],[3,6,9]]… Read More »Multiplication table in Kotlin

The challenge Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at… Read More »Strip Comments in Kotlin

The challenge Consider the sequence S(n, z) = (1 – z)(z + z**2 + z**3 + … + z**n) where z is a complex number and n a positive integer (n… Read More »Experimenting with a sequence of complex numbers in Kotlin

The challenge Let us consider this example (array written in general format): ls = [0, 1, 3, 6, 10] Its following parts: The corresponding sums… Read More »Sums of Parts in Kotlin

The challenge In mathematics, a Diophantine equation is a polynomial equation, usually with two or more unknowns, such that only the integer solutions are sought or studied.… Read More »Diophantine Equation in Kotlin