I always get confused when it comes to pattern printing kind of questions especially the ones which are not continuous and require a combination of printing stars and spaces in the same line. Could you guide me in any way as to how to get better at it and any tips on how to approach these problems?
Need help with these types of questions
hi @yaheyafarooqui_8319591c036ff6e9
if u face problem in writing code first try to build logic using pen and paper… try to figure out the logic how stars and spaces are changing and then try to build some formula… things will become clear with more and more practise only… also there is no harm in reading the soln as it would help u to build logic…
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.