data structures Flashcards
1
Q
What is a data structure?
A
How we are able to store and retrieve data. Organizes data in some fashion
2
Q
What is a list?
A
a list stores ordered collection of elements
3
Q
what is a collection
A
An interface that defines common operations
4
Q
What is a stack?
A
an ordered collection that stores object that are in a last-in first-out fashion
5
Q
What is a queue?
A
Queue stores objects that are in a first-in, first-out fashion
6
Q
What is a map?
A
An object that contains key/value pairs, useful for searching for a value by key.
7
Q
What is an array?
A
The size of an array is fixed, unlike a list.