An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the
https://app.codility.com/demo/results/training9GEGBK-XZE/// you can also use imports, for example:// import java.util.\*;// you can write to stdo
An array A consisting of N integers is given. It contains daily prices of a stock share for a period of N consecutive days. If a single share was boug
A positive integer D is a factor of a positive integer N if there exists an integer M such that N = D \* M.For example, 6 is a factor of 24, because M
https://app.codility.com/demo/results/training7PAXM8-RG2/An array A consisting of N integers is given. A triplet (P, Q, R) is triangular if 0 ≤ P
https://app.codility.com/demo/results/trainingVBMRVB-VZN/Write a function:class Solution { public int solution(int A, int B, int K); }that, given
https://app.codility.com/demo/results/training9B7SKX-4BC/A non-empty array A consisting of N integers is given.A permutation is a sequence contai
카데인 알고리즘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. Th
https://app.codility.com/demo/results/trainingFDG7DR-9SG/You are given two non-empty arrays A and B consisting of N integers. Arrays A and B repr
Two positive integers N and M are given. Integer N represents the number of chocolates arranged in a circle, numbered from 0 to N − 1.You start to eat
A non-empty array A consisting of N numbers is given. The array is sorted in non-decreasing order. The absolute distinct count of this array is the nu
https://app.codility.com/demo/results/trainingYWQXYE-X7P/Let A be a non-empty array consisting of N integers.The abs sum of two for a pair of ind
Located on a line are N segments, numbered from 0 to N − 1, whose positions are given in arrays A and B. For each I (0 ≤ I < N) the position of seg
Task descriptionThere are N ropes numbered from 0 to N − 1, whose lengths are given in an array A, lying on the floor in a line. For each I (0 ≤ I <
https://app.codility.com/demo/results/trainingV47U7M-RBU/A binary gap within a positive integer N is any maximal sequence of consecutive zeros th
https://app.codility.com/demo/results/trainingRNBDPW-72S/A DNA sequence can be represented as a string consisting of the letters A, C, G and T, w
A non-empty array A consisting of N integers is given.The leader of this array is the value that occurs in more than half of the elements of A.An equi