# Kotlin

## 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

## Which x for that sum 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

## Invert values 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

## Moduli number system 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

## Smallest possible sum 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

## Floating-point Approximation 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

## Multiplication table 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