Which of the following data structures is not implemented as a container in C++ STL? 

  • Array 
  • Linked List 
  • Hash Map 
  • Binary Tree
While the C++ Standard Template Library (STL) provides containers for dynamic arrays (vector), linked lists (list), and hash maps (unordered_map), there's no direct implementation for a binary tree. Trees are represented using set, map, multiset, and multimap, but they are based on balanced binary search trees (like Red-Black Trees) rather than generic binary trees.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *