Skip to content

303. 区域和检索 - 数组不可变 #22

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

Open
swiftwind0405 opened this issue Oct 22, 2020 · 0 comments
Open

303. 区域和检索 - 数组不可变 #22

swiftwind0405 opened this issue Oct 22, 2020 · 0 comments

Comments

@swiftwind0405
Copy link
Owner

swiftwind0405 commented Oct 22, 2020

方法一:线段树

解题思想:

代码:

复杂度分析:

  • 时间复杂度:
  • 空间复杂度:

由于数组不可变的,用线段树其实相对更复杂,可以有更简单的解法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant