Skip to content

Commit 32ecf49

Browse files
committed
Make linearRecurrence more permissive
Fixes #123.
1 parent b6231f3 commit 32ecf49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/numerical/LinearRecurrence.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ll mod = 5; /** exclude-line */
1818

1919
typedef vector<ll> Poly;
2020
ll linearRec(Poly S, Poly tr, ll k) {
21-
int n = sz(S);
21+
int n = sz(tr);
2222

2323
auto combine = [&](Poly a, Poly b) {
2424
Poly res(n * 2 + 1);

0 commit comments

Comments
 (0)