I was able to run this code perfectly in desktop but not on CB
@rajharsh865 yes this is the question of kadanes algorithm only .
wait i will see your code and let you know .
@tusharaggarwal272 I am able to run the code properly on cb ide and on my laptop, but when i submit my code it is showing run error
@rajharsh865 i have made one correction in line 11 where you have initailaized your array .please try to submit now .
Happy Learning !!
It was a successful ! thank you.