how is output of sample test case is 2?can u explain
How is output of sample test case is 2?can u explain
Hello @shakul,
In the question you have to find the maximum number of CB numbers that you can form from the input:
In the Sample Testcase:
5
81615
There are at max two CB numbers that we can form:
- 61
- 5
Thus, the output is 2.
Hope, this would help.
If you still have any issue, feel free to ask.
Give a like if you are satisfied.