Intern
What data structures do you know?
sobes.tech AI
Answer from AI
- List: An ordered collection of elements with the possibility of duplicates. Access by index.
- Set: An unordered collection of unique elements. Fast existence check.
- Map/Dictionary: A collection of key-value pairs, where keys are unique. Fast access by key.
- Queue: A data structure implementing the FIFO (First In, First Out) principle.
- Stack: A data structure implementing the LIFO (Last In, First Out) principle.
- Tree: A hierarchical data structure consisting of nodes connected by edges.
- Graph: A set of vertices (nodes) and edges (connections) linking these vertices.