Printing mistake

My code works fine, gives correct answer. However test cases are failing. Am I making a mistake in the way the output is to be printed?

yes you have to print the number of testcase not the size
line 11 will be
System.out.println("#"+(i+1)+" : " +assignment(size,"",0,'x')); //x used to initialize empty char

if this solved your doubt please mark it as resolved :slight_smile:

Thanks for the support. Resolved now.

1 Like