Not all testcases passing in hackerrank in any of the approaches.
Problem link: https://www.hackerrank.com/challenges/ctci-merge-sort/problem
Kindly find the errors in the codes
2 methods (commented):https://ide.codingblocks.com/s/214582
Mergesort method:https://ide.codingblocks.com/s/214583
Insertion_count problem
I couldn’t see your other solution.
I think you code is correct(for merge sort) and don’t know what is the error thats why i am updating your code to mine.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.