I guess my output is correct , i think i am missing a corner case , could you please help me identify my mistake?
One test last shows wrong answer
hey @vijit.chandhok99, your code is giving wrong answer for this input
input
5
1 2 3 4 4
2 3 4 5 8
your output
[2, 3, 4, 5]
correct output
[2, 3, 4]
okay , im successful in finding correct output for the input 5 1 2 3 4 4 2 3 4 5 8
okay , im successful in finding correct output for the input 5 1 2 3 4 4 2 3 4 5 8 , but now i am not able to handle the last square bracket and ‘no comma’, could you please help
hey @vijit.chandhok99, I have changes to your code and mentioned them in comments. You can check them here. https://ide.codingblocks.com/s/100809