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.
Note: Turn the "result" in main into a long long (c++).
For those doing it in c++, I threw long long at everything I found. Including, the main, where lo and behold, the "result" is an int! So ofcs it was not giving the right result for extra long arrays!!!!!!
Insertion Sort Advanced Analysis
You are viewing a single comment's thread. Return to all comments →
Note: Turn the "result" in main into a long long (c++).
For those doing it in c++, I threw long long at everything I found. Including, the main, where lo and behold, the "result" is an int! So ofcs it was not giving the right result for extra long arrays!!!!!!
Here's my solution, modified Fenwick tree: