Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear Partition breaks on some seq,k #1

Open
beldur opened this issue Jul 18, 2016 · 0 comments · May be fixed by #2
Open

Linear Partition breaks on some seq,k #1

beldur opened this issue Jul 18, 2016 · 0 comments · May be fixed by #2

Comments

@beldur
Copy link

beldur commented Jul 18, 2016

The functions breaks for given input:

seq = [2, 5, 7, 3, 4, 9, 2, 3, 3, 2]
k = 8

Cannot read property '0' of undefined

zznidar added a commit to zznidar/linear-partition-javascript that referenced this issue Sep 12, 2020
Certain sequences and rows threw an undefined error due to trying to access solution[-1]
@zznidar zznidar linked a pull request Sep 17, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant