Closed matyle closed 1 year ago
Why do we need this code change when we've already resolved the overflow issue?
Why do we need this code change when we've already resolved the overflow issue? The previous method may overflow if l, r are negative numbers. Although the function call is impossible, I think the previous method is too tricky, and frequent calls to cast twice will cause performance loss, thank you
name: Pull request about: Propose changes to the code title: '' labels: '' assignees: ''
1. Are you opening this pull request for bug-fixs, optimizations or new feature?
2. Please describe how these code changes achieve your intention.
3. Please link to the relevant issues (if any).
4. Which documentation changes (if any) need to be made/updated because of this PR?
4. Checklist