I think in this problem we need to just count the num of unique characters.
I am traversing each string and take the each character and store in frequency array. Still, only 2 test cases are passed. Tell me the reason for failure.
I think in this problem we need to just count the num of unique characters.
I am traversing each string and take the each character and store in frequency array. Still, only 2 test cases are passed. Tell me the reason for failure.
Help me, I also didnt get the why are we using recursion in solution video?
@sauravgupta2800 because constraints are small we can make all the possible strings and check them
2
ab
bc
your code gives 3 but answer is two as we cant concatenate these two strings
Got it, let me try with another approach.
Thanks for helping me out.