Skip to content

Commit 31234ce

Browse files
authored
Update Solution.java
1 parent 13e0b7b commit 31234ce

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g2301_2400/s2400_number_of_ways_to_reach_a_position_after_exactly_k_steps

1 file changed

+1
-1
lines changed

src/main/java/g2301_2400/s2400_number_of_ways_to_reach_a_position_after_exactly_k_steps/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// #2022_09_19_Time_1_ms_(99.66%)_Space_41.7_MB_(91.83%)
55

66
public class Solution {
7-
private final int MOD = 1000000007;
7+
private static final int MOD = 1000000007;
88

99
public int numberOfWays(int startPos, int endPos, int k) {
1010
if (Math.abs(endPos - startPos) > k) {

0 commit comments

Comments
 (0)