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.
Dude how come you guys are thinking this sort of solutions. Hats off.....
First of all in a recursive algo its very difficult for me to assume the values of each var in whole iterations. Keeping in mind you created an equation for number to be added in each iterations to count... great.....
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Merge Sort: Counting Inversions
You are viewing a single comment's thread. Return to all comments →
Dude how come you guys are thinking this sort of solutions. Hats off..... First of all in a recursive algo its very difficult for me to assume the values of each var in whole iterations. Keeping in mind you created an equation for number to be added in each iterations to count... great.....