Run time error in case 0

Can you please help me in finding the loop hole where my code can give run time error

Hi @7nishit,
can u pls share ur code through ide.codingblocks.com

Hi @7nishit,
Change the value of MAX which u have defined as 500 to 1000.
Rest of ur code is fine.
Hope this resolve ur doubt.

Thanks, it worked :slight_smile: