My code :-https://ide.codingblocks.com/s/659905
Test case 1 shows run error
hi @ayushkotwar2002_78a27ac2b05189a5,
just make array size bigger maybe 1000000, else code is correct
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
It still shows the same error
@ayushkotwar2002_78a27ac2b05189a5 i submitted the same code
https://hack.codingblocks.com/app/practice/1/736/problem here
Now its working.Thanks for the help sir
Awesome and interesting article. Great things you’ve always shared with us. Thanks. Just continue composing this kind of post.