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.
No, it's a terrible problem as it is requiring you to solve the code in a particular (and to top it off, really bad!) way, which is annoying.
For example in JavaScript you would solve this really simply with Array.slice, but because this solution doesn't involve "shifting" elements around like it's the 1960s, it won't work.
Terrible problem, rethink it.
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 →
No, it's a terrible problem as it is requiring you to solve the code in a particular (and to top it off, really bad!) way, which is annoying.
For example in JavaScript you would solve this really simply with Array.slice, but because this solution doesn't involve "shifting" elements around like it's the 1960s, it won't work.
Terrible problem, rethink it.