I cant pass all the test cases

@tusharnitharwal you have to give spaces between elements in a row while printing the solution.

there is small error in your code i have updated it and commented the part where changes is made (https://ide.codingblocks.com/s/195323)

1 Like