[Codility] Lesson4. MaxCounters - 문제풀이
Description 주어진 배열에서 아래와 같이 경우에 따라 2가지 연산을 한 뒤 결과배열을 반환하는 문제입니다. 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. This array represents consecutive operations: if A[K] = X, such that 1 ≤ X ≤ N, th..