문제
MaxCounters coding task - Learn to Code - Codility
Calculate the values of counters after applying all alternating operations: increase counter by 1; set value of all counters to current maximum.
app.codility.com
결과
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
'🔥 PS(Problem Solving) 🔥 > Codility' 카테고리의 다른 글
[Codility] Lesson 4 Counting Elements : FrogRiverOne (0) | 2021.04.07 |
---|---|
[Codility] Lesson 3 Time Complexity : TapeEquilibrium (0) | 2021.04.06 |
[Codility] Lesson 3 Time Complexity : PermMissingElem (0) | 2021.04.06 |
[Codility] Lesson 3 Time Complexity : FrogJmp (0) | 2021.04.05 |
[Codility] Lesson 2 Arrays : OddOccurrencesInArray (0) | 2021.04.05 |
댓글