total no of substring abc will be 2^length of string which is 2^3.
But if string is like abcab then how to find the total no of ways?
Bit masking doudt
i think you dont know difference between substring, subset and sub sequence…
1 Like
please read this to clear your doubts…