목록Codility Lessons (13)
끄적끄적
Codility Lesson4 - FrogRiverOne https://app.codility.com/demo/results/trainingQJ8MQ6-EGV/ Test results - Codility A small frog wants to get to the other side of a river. The frog is initially located on one bank of the river (position 0) and wants to get to the opposite bank (position X+1). Leaves fall from a tree onto the surface of the river. You are given an array app.codility.com 문제 A small ..
Cobility Lesson3 - TapeEquilibrium https://app.codility.com/demo/results/trainingV8FEPN-MVN/ Test results - Codility A non-empty array A consisting of N integers is given. Array A represents numbers on a tape. Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ..., A[N − 1]. The difference betw app.codility.com 문제 A non-em..
Cobility Lesson3 - PermMissingElem https://app.codility.com/demo/results/training4QR7VV-HFX/ Test results - Codility An array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing. Your goal is to find that missing element. Write a function: def solution(A) that, given an arra app.codility.com 문제 An a..
Codility Lesson3 - FrogJmp https://app.codility.com/demo/results/trainingXYNX55-NT5/ Test results - Codility A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D. Count the minimal number of jumps that the smal app.codility.com 문제 A small frog..
Codility Lesson2 - OddOccurrencesInArray https://app.codility.com/demo/results/trainingCGBH6B-Q9C/ Test results - Codility A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired. For example, in arr app.codility.com 문..
Codility Lesson2 - CyclicRotation https://app.codility.com/demo/results/trainingX872UE-GT9/ Test results - Codility 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 array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, app.codility.com 문제 An ar..