This commit is contained in:
2026-05-23 20:29:33 +05:00
parent 8fd749fe9e
commit 9d30fc897c
6 changed files with 60 additions and 0 deletions

9
solutions/lc2960.py Normal file
View File

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