InterviewSolution
Saved Bookmarks
| 1. |
What is the space complexity of the insertion sort algorithm? |
|
Answer» INSERTION sort is an in-place sorting method, which implies it does not require any additional or minimal data storage. In insertion sort, only a single LIST element MUST be stored outside of the starting data, RESULTING in a constant space complexity or O(1) space complexity. |
|