Skip to content

Commit 340be65

Browse files
committed
Runtime: 0 ms (Top 100.0%) | Memory: 40.50 MB (Top 29.41%)
1 parent 0e67d40 commit 340be65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Runtime: 0 ms (Top 100.0%) | Memory: 40.50 MB (Top 29.41%)
2+
13
class Solution {
24
public int numTilings(int n) {
35
long[] dp = new long[n + 3]; dp[0] = 1; dp[1] = 2; dp[2] = 5;
@@ -6,4 +8,4 @@ public int numTilings(int n) {
68
}
79
return (int)dp[n - 1];
810
}
9-
}
11+
}

0 commit comments

Comments
 (0)