목록Codility Lessons (13)
끄적끄적
Codility Lesson5 - GenomicRangeQuery https://app.codility.com/demo/results/trainingZFPZEZ-K9B/ Test results - Codility A DNA sequence can be represented as a string consisting of the letters A, C, G and T, which correspond to the types of successive nucleotides in the sequence. Each nucleotide has an impact factor, which is an integer. Nucleotides of types A, C, G and T ha app.codility.com https..
Codility Lesson5 - CountDiv https://app.codility.com/demo/results/training7V2QZV-P8M/ 문제 Write a function: def solution(A, B, K) that, given three integers A, B and K, returns the number of integers within the range [A..B] that are divisible by K, i.e.: { i : A ≤ i ≤ B, i mod K = 0 } For example, for A = 6, B = 11 and K = 2, your function should return 3, because there are three numbers divisibl..
Codility Lesson5 - PassingCars https://app.codility.com/demo/results/training9CG426-3S9/ Test results - Codility A non-empty array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars on a road. Array A contains only 0s and/or 1s: 0 represents a car traveling east, 1 represents a car traveling west. The goal is to count app.codility.com 문제 A non-emp..
Codility Lesson4 - MissingInteger https://app.codility.com/demo/results/trainingZFTD5X-7DF/ Test results - Codility This is a demo task. Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. Given A = app.codility.com 문제 This ..
Codility Lesson4 - MaxCounters https://app.codility.com/demo/results/training7F6A9P-Z4M/ Test results - Codility You are given N counters, initially set to 0, and you have two possible operations on them: increase(X) − counter X is increased by 1, max counter − all counters are set to the maximum value of any counter. A non-empty array A of M integers is given. T app.codility.com 문제 You are give..
Codility Lesson4 - PermCheck https://app.codility.com/demo/results/trainingNPNR9A-F3P/ Test results - Codility A non-empty array A consisting of N integers is given. A permutation is a sequence containing each element from 1 to N once, and only once. For example, array A such that: A[0] = 4 A[1] = 1 A[2] = 3 A[3] = 2 is a permutation, but array A such that: A[0] = app.codility.com 문제 A non-empty..