FrogRiverOne
-
Lesson 4 Counting Elements FrogRiverOne 나만의풀이알고리즘/codility 2021. 5. 30. 23:03
문제 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 A consisting of N integers representing the falling leaves. A[K] represents the position where one leaf falls at time K, measured in second..