A data structure is a way to store and organize data in memory in order to facilitate access and modifications.
- An algorithm is a collection of steps to solve a particular problem.
-
Correctness β Data structure implementation should implement its interface correctly.
-
Time Complexity β Running time or the execution time of operations of data structure must be as small as possible
-
Space Complexity β Memory usage of a data structure operation should be as little as possible.