🔥 PS(Problem Solving) 🔥/Codility
[Codility] Lesson 4 Counting Elements : MaxCounters
dar0m!
2021. 4. 15. 00:12
문제
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