Skip to content

Commit b5d2994

Browse files
committed
Runtime: 368 ms (Top 16.85%) | Memory: 89.8 MB (Top 41.57%)
1 parent 9221904 commit b5d2994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/N/Number of Ways to Rearrange Sticks With K Sticks Visible/Number of Ways to Rearrange Sticks With K Sticks Visible.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 368 ms (Top 16.85%) | Memory: 89.8 MB (Top 41.57%)
12
class Solution {
23
public int rearrangeSticks(int n, int k) {
34
final int MOD = 1_000_000_007;
@@ -10,4 +11,4 @@ public int rearrangeSticks(int n, int k) {
1011
}
1112
return (int) M[k][n];
1213
}
13-
}
14+
}

0 commit comments

Comments
 (0)