I don’t understand if it is better to create our libraries which I can use again and again in a competitive programming competition or is it better to re-implement them again and again.
Pros for re-implementation:
- More practice of implementation of algorithms and DS
- Can easily tweak it
- Makes a better typer
- Can help in interviews
Cons:
- Time-consuming even for implementations one knows by heart
Pros for libraries:
- Saves time
- Teaches how to maintain a huge code base and which one should be used when
- Teaches how to modify existing code as per our need without killing its real purpose
Cons:
- One might forget implementations
So what are your views and what is better in long run?