Find the minimal average of any slice containing at least two elements.
Task description A non-empty array A consisting of N integers is given. A pair of integers (P, Q), such that 0 ≤ P < Q < N, is called a slice of array A (notice that the …
Task description A non-empty array A consisting of N integers is given. A pair of integers (P, Q), such that 0 ≤ P < Q < N, is called a slice of array A (notice that the …
Task description: Determine whether a triangle can be built from a given set of edges An array A consisting of N integers is given. A triplet (P, Q, R) is triangular if 0 ≤ P < Q …
Task description Write a function function solution(A); that, given an array A consisting of N integers, returns the number of distinct values in array A. For example, given array A consisting of six elements such …
hey, One of our users asked for the solution to Compute the number of intersections in a sequence of discs, He is preparing for online coding test on Codility test to get a job in …
Task description: Determine whether a given string of parentheses (multiple types) is properly nested. More details are given below. A string S consisting of N characters is considered to be properly nested if any of the following …
Codility doesn’t post model solutions to each exercise. Every time you attempt to solve an exercise on a machine, you get a detailed evaluation report, plus the lesson itself contains examples of how to apply …