-
Notifications
You must be signed in to change notification settings - Fork 512
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
Create spoj-cot.mdx (solution for the problem I added about persisten… #5073
base: master
Are you sure you want to change the base?
Conversation
…t segment tree) The code solution for the problem count on tree from spoj on persistent segment tree concept
for more information, see https://pre-commit.ci
Hi, I just submitted this pull request. Please let me know if there’s anything I need to adjust or address. Thanks! |
Could you please help me resolve the problem "Some checks were not successful"? Is the " '''cpp " causing the problem? |
fyi, you can test ur mdx code at usaco.guide/editor |
hmm, it's giving this error:
|
I changed the solution metadata kind to internal after committing this change. I think I accidentally included it in a different pull request |
yeah thats what it looks like, just change the solution type to internal |
…data of the problem called count on tree)
I think I solved it |
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.
just some misc style changes + other
for examples of how the code should roughly look, u can look at other internal solutions (here's a good example)
Co-authored-by: Justin Ji <[email protected]>
Thank you for the suggestions! Is there anything else that you would suggest modifying? |
for more information, see https://pre-commit.ci
…code) Modified the explanation part and organized the code
I changed the code and the explanation part |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Corrected explanation, specifically the "handling overcounting with LCA" part
Changed the variable name from a to u and b to v
Modified the note, so it is more grammatically correct
corrected typo
Is there anything else that you suggest I modify? @SansPapyrus683 |
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.
fyi, value compression isn't strictly needed (altho it makes it faster, ig)
my code is here (u can remove fast io, altho using std::endl
times out cuz its slow)
Deleted long longs and the build function since they weren't necessary
for more information, see https://pre-commit.ci
I decreased the number of nodes since 5e6 would suffice
Reduced the number of nodes to 2e6
Is there anything else that you suggest I modify? |
Improved the description's clarity, removed redundancies, and changed the format of the variables (latex)
Anything else that you would recommend changing? |
…t segment tree)
The code solution for the problem count on tree from spoj on persistent segment tree concept
Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.