Q. When and why would you choose insertion sort over bubble sort?


Answer =

Insertion sort choose at that time when given data-set is small because it is easy to implement and at the same time, it does not required additional memory. It can be fast if the data is almost nearly sorted.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post