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.
Indeed merge sort with Python under certain conditions does not work. In C++ it works. However, remember to change results to long type, as it can overflow otherwise.
BIT is an interesting approach and having seen the comments here, I will try it now for practce.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort Advanced Analysis
You are viewing a single comment's thread. Return to all comments →
Indeed merge sort with Python under certain conditions does not work. In C++ it works. However, remember to change results to long type, as it can overflow otherwise.
BIT is an interesting approach and having seen the comments here, I will try it now for practce.