We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e0b7b commit 31234ceCopy full SHA for 31234ce
src/main/java/g2301_2400/s2400_number_of_ways_to_reach_a_position_after_exactly_k_steps/Solution.java
@@ -4,7 +4,7 @@
4
// #2022_09_19_Time_1_ms_(99.66%)_Space_41.7_MB_(91.83%)
5
6
public class Solution {
7
- private final int MOD = 1000000007;
+ private static final int MOD = 1000000007;
8
9
public int numberOfWays(int startPos, int endPos, int k) {
10
if (Math.abs(endPos - startPos) > k) {
0 commit comments