Plz tell the error
I tried but still getting errors that i put mistankly plz chck if there is any logical error i am not getting correct output for certain testcase
yeah there is a logical error !! consider this test case
14
23574414416111
according to your code logic answer should be 6 which are :-
2
3
5
7
44144161
11
but notice 44144161 Now we can have 41 41 61 three CB Numbers out of it
thus the actual answer is 8 .
Yes iam not getting the error
@Namanjain123, there are some small mistakes in your codes , your logic is fine
i have corrected the error
refer this : https://ide.codingblocks.com/s/202143\
I highly recommend you to refer the editorial of this problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.