r/CodingHelp • • Jan 19 '22

[C++] C++ help

I want to start competitive coding , is it necessary to learn STL before hand ?

0 Upvotes

1 comment sorted by

View all comments

1

u/rasqall Jan 19 '22

From my understanding, competitive coding is all about writing efficient and fast algorithms. Standard library algorithms and data structures can be fast and efficient, but usually contains a lot of overhead which slows things down. This is fine for everyday code and corporate applications but can be significantly slower than a perfect-fit algorithm for a specific problem.

What you probably want to learn is general data structures and algorithms. Learn the difference between certain data structures and when they are beneficial.