We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好, 正在阅读leetcode-cookbook, 写的很好, 遇到了一些问题
关于2038题 As += Acont - 2 Bs += Bcont - 2 是否应该改成 As += 1 Bs += 1 (虽然这两种情况都是通过的, 但这应该是测试样例少的关系) =========
关于Segment Tree的模板 lazy节点的update, query中出现了for循环, 这好像和我学习的lazy tag不太一样, 是否是写错了 ref: https://oi-wiki.org/ds/seg/#%E5%AE%9E%E7%8E%B0_2 补充: 其中的计数问题那块中, 函数updateCountInTree中涉及区间更新, 没有使用lazy tag, 其复杂度是否会退化到O(n), 可以使用lazy tag优化到O(logn).
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
你好, 正在阅读leetcode-cookbook, 写的很好, 遇到了一些问题
关于2038题
As += Acont - 2
Bs += Bcont - 2
是否应该改成
As += 1
Bs += 1
(虽然这两种情况都是通过的, 但这应该是测试样例少的关系)
=========
关于Segment Tree的模板
lazy节点的update, query中出现了for循环, 这好像和我学习的lazy tag不太一样, 是否是写错了
ref: https://oi-wiki.org/ds/seg/#%E5%AE%9E%E7%8E%B0_2
补充: 其中的计数问题那块中, 函数updateCountInTree中涉及区间更新, 没有使用lazy tag,
其复杂度是否会退化到O(n), 可以使用lazy tag优化到O(logn).
The text was updated successfully, but these errors were encountered: