this is maximum subarray sum question from hackerblocks… ans is coming correct but test cases are not passing… pls tell whats the error
Pls tell whats wrong in this code
you make array of size 10X10
that’s why it is giving run error
make array of size 500X500 all testcases wil pass
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
make array of size 500X500… sir but in constraints its not mentioned…
also one test case still not passing
This is hint and Try
First I try for 100X100
But one testcase give runtime error
Hence I try for 500X500 and all testcase pass
I should mention in problem
But obviously it should be greater than 10 X10
sir but one test case still not passing… what to do
it should pass
i have check and submit your code it is running all testcases
send me your code link
make size of array as 1001X1001
all testcases will pass
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
okay… thank you sir… it worked now