Skip to content

Commit 22b60ed

Browse files
committed
Runtime: 75 ms (Top 95.72%) | Memory: 13.9 MB (Top 34.37%)
1 parent c3f49b4 commit 22b60ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/algorithms/C/Calculate Amount Paid in Taxes/Calculate Amount Paid in Taxes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Runtime: 75 ms (Top 95.72%) | Memory: 13.9 MB (Top 34.37%)
2+
13
class Solution:
24
def calculateTax(self, brackets: List[List[int]], income: int) -> float:
35
taxtot=0
@@ -16,4 +18,4 @@ def calculateTax(self, brackets: List[List[int]], income: int) -> float:
1618
taxtot+=income*brackets[i][1]
1719
income=0
1820
i+=1
19-
return taxtot/100
21+
return taxtot/100

0 commit comments

Comments
 (0)