'data structures access by index
-Vectors Linked Lists Maps Stack
It is little confusing, when it says access, I did not quite understand what it meant. Started thinking about data structures , I know that arrays are indexed. Also know that vector can be accessed by index, but access by index? I think that got me confused
Solution 1:[1]
From memory, in c++:
std::vector,std::string,std::array,std::deque,std::bitset,std::valarray,std::span(Not a container)
So the answer is "Vectors"-ish.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | viraltaco_ |
