Printing the Middle Rows

When drawing the middle part we need to check if the row is (n-1) / 2 - 1, because in the examples we can see that in this row we need to print pipes instead of white spaces.

Testing in the Judge System

Test your solution here:

results matching ""

    No results matching ""