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

Fix Fatal error: Index out of range issue when matrix is empty And one typo #295

Merged
merged 2 commits into from Aug 24, 2022

Conversation

SunsetWan
Copy link
Contributor

The old version of the solution to 304. Range Sum Query 2D - Immutable didn't cover the case that the input matrix is empty.
When the input matrix is empty, the result will be "Fatal error: Index out of range".

@SunsetWan
Copy link
Contributor Author

image

@SunsetWan SunsetWan changed the title Fix Fatal error: Index out of range issue when matrix is empty Fix Fatal error: Index out of range issue when matrix is empty And one typo Apr 28, 2020
@soapyigu
Copy link
Owner

Looks good to me, thanks for the contribution!

@soapyigu soapyigu merged commit 7464e76 into soapyigu:master Aug 24, 2022
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.

None yet

2 participants