9 lines
220 B
Python
9 lines
220 B
Python
class Solution:
|
|
def countTestedDevices(self, batteryPercentages: List[int]) -> int:
|
|
total = 0
|
|
|
|
for i in batteryPercentages:
|
|
if i-total > 0:
|
|
total += 1
|
|
|
|
return total |