TCS STL Interview Questions
Below are TCS STL Interview Questions asked in TCS Interview:
1. How to Iterate or Loop over a Vector?
2. How to Iterate over a Vector in Reverse Order ( Backward direction )?
3. How to remove all occurrences of an element from vector in O(n) complexity?
4. How to use vector efficiently in C++?
5. How to Print all elements of a vector in C++?
6. What is std::deque and how deque works internally?
7. How to get element by index in List?
8. How to search an element in std::list?
9. How to Iterate over a Set in C++?
10. How to Iterate over a map in C++?
Please post more questions and answers in comments section.
No comments:
Post a Comment