Libraries for Commonly used data structures in cp

Hello guys, so I have been working on preparing libraries for commonly used data structures in competitive programming.
Have a look at the following:

would be great to know if people find this helpful.
Do provide suggestions and improvements/bugs. I will be working on more of the common data structures and algorithms.
also if you’d like, contribute :slight_smile:


Thanks for this but we cant use it in Online Contests I think… Can we???

1 Like

Yes, just add a link to the source in your code to avoid plagiarism.


Very much useful stuff! Thanks for this!! :slight_smile:

1 Like

solution to SPOJ GSS1 using segTree library :

1 Like

adding link in comment will suffice right?


Taking help or using third party code is not bad. Passing it off as your own is. If you are taking your code from some other source, it is expected that you give the due attribution to the source in your code. It is mandatory. The third party code should have been available publicly before the relevant contest began, and not created during the contest. And if questioned, the proof of burden rests on you to prove this beyond a doubt.
But in case you have missed giving attribution to a third party code, and you get caught in our plagiarism check, then you have the option of proving to us that this was indeed a publicly available code.

1 Like

Great work man! Always wanted some libraries for these data structures…

1 Like