Code: https://ide.codingblocks.com/s/425261
Problem:https://hack.codingblocks.com/app/contests/2022/1375/problem
Its passing all the test cases but I want to ask that why count++ is in base case ( line-11 )?
It should only execute when input array becomes null(in this case shouldn’t the count=1)?
Why cannot I put count in line number 25,after calling recursion?