Pattern Numbers & Stars - 2

how to do this question without brute force what is the efficient way and check my code also

how to find logic for an efficient way :sweat_smile: :joy:

code:- https://ide.codingblocks.com/s/461689

ques:- https://online.codingblocks.com/app/player/189104/content/180066/5023/code-challenge

hello @dasvishal60

check now->

we cant do it in better complexity

it didn’t pass test case

check now

1 Like

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.