Skip to content

Commit 95661e1

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 40.5 MB (Top 78.77%)
1 parent be13a43 commit 95661e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 40.5 MB (Top 78.77%)
12
class Solution {
23
public int brokenCalc(int startValue, int target) {
34
if(startValue >= target) return startValue - target;
@@ -6,4 +7,4 @@ public int brokenCalc(int startValue, int target) {
67
}
78
return 1 + brokenCalc(startValue, target + 1);
89
}
9-
}
10+
}

0 commit comments

Comments
 (0)