if(row == 1 || row == 5 || col == 1 || col == 5) to make this condition dynamic we can set the value of n if(row == 1 || row == n || col == 1 || col == n) using n it will get the value of n which will be the last number of row and column
Thankyou so much sir!!! for starting up with this wonderful channel!! your hardwork and dedication is shown in your videos, pls make more videos like this 😊😊
Amazed by the way you are explaining.. It is really easy to catch at very first go❤. I really really enjoyed it. Awaiting on more such interesting and engaging sections. Please bring up such amazing project series @TapAcademy
Okay this logic ok when you don't need output in ordered way.. means 112234 ->1234 ..but what if input is 123231..will get unordered output ->321 ...but actual order we want is-> 123