Skip to content

Update 432.cpp #60

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

Closed
wants to merge 4 commits into from
Closed

Update 432.cpp #60

wants to merge 4 commits into from

Conversation

golfrumors
Copy link

Fixed mistake that would cause the proposed solution to not compile beforehand in 432. All O`one Data Structure.cpp
In particular, it was with the getMaxKey and getMinKey functions
image

walkccc and others added 4 commits June 23, 2024 00:38
Fixed mistake that would cause the proposed solution to not compile beforehand
Fixed error that would cause program to crash on the first testcase, as it would cause signed integer overflow.

Defining the dp vec as long long, or doing so with the macro will fix it instead
static vector would have to be initialized out of line here
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 this pull request may close these issues.

2 participants