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

Bug Report for insert-new-interval #3974

Open
ikurooo opened this issue Mar 29, 2025 · 0 comments
Open

Bug Report for insert-new-interval #3974

ikurooo opened this issue Mar 29, 2025 · 0 comments

Comments

@ikurooo
Copy link

ikurooo commented Mar 29, 2025

Bug Report for https://neetcode.io/problems/insert-new-interval

It's not a bug per se, but the recommended space complexity doesn't sit right with me since we are given an array and for languages like C/Java those are effectively final meaning, if we need to insert the interval without merging, it cannot be done in O(1) space but rather O(n).

If this is not the case please disregard this issue.
Have a nice day :D

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

No branches or pull requests

1 participant