I was able to run this code perfectly in desktop but not on CB

hello @rajharsh865 what logic are you using to code this question ?

@tusharaggarwal272 I have used kadane’s algorithm

@rajharsh865 yes this is the question of kadanes algorithm only .
wait i will see your code and let you know .

@rajharsh865 what problem are you facing with the code ?

@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.

hey @rajharsh865 please mark this doubt as resolved .
Happy Learning !!