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.
linearRecurrence
1 parent b6231f3 commit 32ecf49Copy full SHA for 32ecf49
content/numerical/LinearRecurrence.h
@@ -18,7 +18,7 @@ const ll mod = 5; /** exclude-line */
18
19
typedef vector<ll> Poly;
20
ll linearRec(Poly S, Poly tr, ll k) {
21
- int n = sz(S);
+ int n = sz(tr);
22
23
auto combine = [&](Poly a, Poly b) {
24
Poly res(n * 2 + 1);
0 commit comments