Wrong expected answer for input 2232203


#1

for input 2232203 the output must be 4
the ways are :
2 2 3 2 20 3
22 3 2 20 3
2 23 2 20 3
22 3 2 20 3

BUT THE EXPECTED OUTPUT IS 3…Please Explain!!


#2

bro, u have repeated 2 cases 2nd & 4th in ur output
output is :
2 2 3 2 20 3
22 3 2 20 3
2 23 2 20 3