On submitting the problem on hacker blocks,all the test cases except test case 2 are working file. Please tell me what is the error with test case 2?
Link to my code:https://ide.codingblocks.com/s/271250
On submitting the problem on hacker blocks,all the test cases except test case 2 are working file. Please tell me what is the error with test case 2?
Link to my code:https://ide.codingblocks.com/s/271250
hi @gptradhika1208 try increasing the size of your array slightly. The logic seems fine. You can use this code for reference.