Doublesided arrow code please explain

please clearly explain the code given in the editorial step by step with an input example.

Hey @pranavbrindavanam_cfc3071355b2f444 The editorial says in easy words that you need to make a loop to maintain which row you’re working on and under this loop you need to take 4 separate loops .
one for spaces before the starts , Second for left stars, third for spaces between left and right stars and fourth for right stars. The condition for these loops will change according to number of stars or spaces required.
PS : In editorial it says to think of numbers as stars it is nothing but it is said bcoz first try to do this problem by stars then goto numbers.

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.