PATTERN MOUNTAIN

HEY,
I’D DONE THIS QUESTION, PLEASE SEE WHETHER THE APPROACH I’D USED IS GOOD OR NOT?
OR ANY SUGGESTIONS?

after solving any question
to check if there is another better solution or not
you can just open editorial

opening editorials after solving question will not affect your score

Ohk Sure, Thanks. . .

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask