One test case not passed

ide - https://ide.codingblocks.com/s/140909
one of the test case not passed.

@kushal1998 Consider test case:
4
1
2
3
4
5

Expected output:
1 and 4
2 and 3

Your Output:
1 and 4

Dry run your code and check where you are going wrong.


i have modified my code but now for one test case it is showing no output i request you to please edit my code.

@kushal1998 https://ide.codingblocks.com/s/141258

I have made some changes. Check it now.

1 Like