Skip to content

Commit cf12b63

Browse files
adds comments in min cost climbing stairs
1 parent 2d6c5da commit cf12b63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MinCostClimbingStairs.java

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// https://leetcode.com/problems/min-cost-climbing-stairs
2+
// T: O(n)
3+
// S: O(1)
4+
15
public class MinCostClimbingStairs {
26
public int minCostClimbingStairs(int[] cost) {
37
int currentCost = cost[1], previousCost = cost[0], temp;

0 commit comments

Comments
 (0)