https://ide.codingblocks.com/#/s/30564
code for https://hack.codingblocks.com/contests/c/512/1259
the logic has been covered in the video lectures, but it shows time limit exceeded upon submission to hackerblocks, if I remove long long int, then run-error.
https://ide.codingblocks.com/#/s/30572 -kadane’s algo
same case with kadane’s algo, again logic has been covered in videos
both the code work fine in my system ide, but i don’t use long long int for system ide
Please highlight the problem/issue and suggest changes.
thanks