-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
feat: Added persistent segment tree with lazy propagation #1445
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is not up to the repository standards.
Please read them carefully and follow them.
I have read the standards and tried to follow them as much as i could. Can you please elaborate which standard/s am i not following? Is using normal pointers not allowed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's start: first, we need to fix clang-tidy
warnings. 🙂
Why do i get warnings when using normal pointers? |
Done. What's next? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please enable GitHub Actions in your repository of this fork in this link: https://github.com/MSedra/C-Plus-Plus/actions
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice work! Well done.
Would you please consider editing the filename to make it shorter?
Also consider using uint64_t
(for non-negative values), int64_t
(for negative values) or their appropriate size in all the code.
Thank you. 🙂
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
range_queries/persistent_segment_tree_with_lazy_propagation.cpp
Outdated
Show resolved
Hide resolved
…s-Plus into perSegTree-lazyProp
@ayaankhan98 can you please review the last changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, looks amazing! LGTM; thanks for your contribution! 👍 🎉
Thank you so much for your help |
…hms#1445) * Added persistent segment tree with lazy propagation * Updated * Updated * Updated * Updated * Updated * Updated * Added a documentation * Updated * updating DIRECTORY.md * clang-format and clang-tidy fixes for 4b6566d * Updated * clang-format and clang-tidy fixes for 6197ba4 * Update persistent_segment_tree_with_lazy_propagation.cpp * Updated * Delete persistent_segment_tree_with_lazy_propagation.cpp * Updated * updating DIRECTORY.md * clang-format and clang-tidy fixes for 81621d8 * Update persistent_seg_tree_lazy_prop.cpp Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: David Leal <[email protected]>
Description of Change
Checklist
Notes: