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.
calculating "len(whatever)" in the beginning of the function and carrying the variable through the function should be plenty to save time... it worked for me at least.
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 →
calculating "len(whatever)" in the beginning of the function and carrying the variable through the function should be plenty to save time... it worked for me at least.