[Solved] What’s wrong with my code? It shows an unwanted result [closed]
You need to learn how to debug your code. If you can’t do that with a debugger, write a function which prints to the screen the relevant information, such as the following: void paxDebug(const char *desc, ll arr[], ll sz, ll n, ll b, ll x, ll pos) { cout << desc << “\n”; cout … Read more