is my code link which is running perfectly on test cases
but on submissoion giving wrong answer
My code on Maxsub array sum is giving wrong answer on submission
@Adarshrajpandey You are not passing the map by reference. Enter & in front of the map declaration in the function.
Also this problem can be easily solved using kadanes algorithm I would recommend that you must solve it using kadanes algorithm which is really simple.
i have put & sir but it is still givig wrong answer
yes sir i will use it
Okay sure do it and it will be solved