pls send up-down approach, iam unable to make logic for that
Pls end up-down approach
Hey, @Shubham800 i am a bit confused, did u mean top down? or bottom up?
which one do you want? assuming that u need bottom up since top down for this is a bit simple to solve using recursion, I am attaching the link to it: