Vectors are a common data structure used in C++, particularly in the Standard Template Library (STL). They are dynamic arrays that can grow or shrink in size as needed, which makes them an efficient and flexible option for storing and manipulating co...

Markdown supported · ⌘↵ to post
Yashwanth Sai
i guess its better to use emplace back then push back as what i have read its faster then push back
Soham Sarkar
Young Blogger and Coding Enthutiast
I'd recommend adding a few example questions for vector for people to understand it's use-case in problem solving, all d best for future write ups