I am not able to understand the approach to the problem “Pattern Magic”. Editorial too is given in java.
Not able to understand the approach
hi @shiwanitehlan_5cf99744487d0b23,
The given pattern is seen as first stars then spaces and then stars .So for each row do the work of stars fist , then that of spaces and then that of stars. And then change the variables accordingly for next iterations.
refer this code -->