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.
@shashank21j I did this after I was back from work, but what I meant in my original comment was that the way it was worded was really confusing. Tried few approaches for this one final iteration and failed and only implementing standard insertion which I remembered from school did proper job. My idea is to deal with this that way: "Here, implement insert sort, print only when you insert an element", done, no confusion about it ;)
But again, maybe it's just me :D
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort - Part 1
You are viewing a single comment's thread. Return to all comments →
@shashank21j I did this after I was back from work, but what I meant in my original comment was that the way it was worded was really confusing. Tried few approaches for this one final iteration and failed and only implementing standard insertion which I remembered from school did proper job. My idea is to deal with this that way: "Here, implement insert sort, print only when you insert an element", done, no confusion about it ;)
But again, maybe it's just me :D