We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Perhaps they wanted to make us study on another sorting algorithm. Question says "Is there some other way we can calculate the number of shifts an Insertion Sort performs when sorting an array?"
For last 2 days I've been studying binary search tree, and now I'm starting to study merge sort :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort Advanced Analysis
You are viewing a single comment's thread. Return to all comments →
Perhaps they wanted to make us study on another sorting algorithm. Question says "Is there some other way we can calculate the number of shifts an Insertion Sort performs when sorting an array?"
For last 2 days I've been studying binary search tree, and now I'm starting to study merge sort :)