Strip Comments 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 the end of …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of …
Read Article →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 > 0). …
Percona has a great toolkit that allows you to perform schema changes on a MySQL or MariaDB database without any downtime, it works by creating a new …
Read Article →Let us consider this example (array written in general format):
ls = [0, 1, 3, 6, 10]
Its following parts:
ls = [0, 1, 3, 6, 10]
ls = …
Read Article →
In mathematics, a Diophantine equation is a polynomial equation, usually with two or more unknowns, such that only the integer solutions …!-->!-->
Read Article →Write a function that accepts two square matrices (N x N two dimensional arrays), and return the sum of the two. Both matrices being …
The number 81 has a special property, a certain power of the sum of its digits is equal to 81 (nine squared). Eighty one (81), is the …
Read Article →You have to give the number of different integer triangles with one angle of 120 degrees which perimeters are under or equal a certain …
Read Article →You’re given a square consisting of random numbers, like so:
var square = [
[1,2,3],
[4,8,2],
[1,5,3]
];
Your job is …
Read Article →Create a function that returns an array containing the first l digits from the nth diagonal of Pascal’s triangle.
n = 0 should …
Given an unsorted array of integer values, find the maximum positive sum of any contiguous range within the array.
An array containing …
Read Article →You’re going to provide a needy programmer a utility method that generates an infinite sized, sequential IntStream which contains …