This is my code - https://ide.codingblocks.com/s/577726
This is correct but it shows run error when i submit the code and here array size is 10e+5, but when i decrease the array size to 1e4+5 then it runs but shows wrong ans.
Can you please tell me the reason for this?