Skip to content

Added Trie and Segment Tree data structures (with Lazy Propagation) #6837

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
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Sreekar-Reddy-D
Copy link

This PR adds:

  • Trie data structure (trie.cpp + README)
  • Segment Tree with point updates and range sum queries
  • Segment Tree with Lazy Propagation (range updates)
  • Proper documentation for both in README.md files

Location:

  • code/data_structures/src/trie/
  • code/data_structures/src/segment_tree/

Tested using sample cases in main() functions.

@Sreekar-Reddy-D
Copy link
Author

Hi! I’ve added Trie and Segment Tree implementations following the style guide. Please review and let me know if changes are needed. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant