ManmohanLovesPatterns-1

Not solve this problem

Hi @faizan_1402 notice the pattern
for all rows, the corner element is always 1
If there are more than 2 elements in the row, then

  1. if it is an odd row (for eg the 3rd row) then we insert 1 in between the corner elements
  2. If it even row (eg, 4th row) then we insert 0 in between the corner elements

We have to print a total of n rows

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.