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 ae5aa68 commit c7b3018Copy full SHA for c7b3018
LeetCode/1211-1220/1220. 统计元音字母序列的数目(困难).md
@@ -116,7 +116,8 @@ class Solution {
116
}
117
```
118
-
119
-```Python3
+
120
+```Python
121
MOD = int(1e9) + 7
122
class Solution:
123
def countVowelPermutation(self, n: int) -> int:
@@ -130,6 +131,7 @@ class Solution:
130
131
return (((((f[-1][0] + f[-1][1]) % MOD + f[-1][2]) % MOD + f[-1][3]) % MOD) + f[-1][4]) % MOD
132
133
134
135
```Go
136
const MOD int = 1e9 + 7
137
func countVowelPermutation(n int) int {
@@ -363,7 +365,7 @@ class Solution {
363
365
364
366
367
368
+```python
369
import numpy as np
370
MOD = 10 ** 9 + 7
371
dtype = np.dtype('uint64')
0 commit comments