1
This commit is contained in:
9
solutions/lc2960.py
Normal file
9
solutions/lc2960.py
Normal 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
|
||||
Reference in New Issue
Block a user