Subsequences using recursion problem

https://ide.codingblocks.com/#/s/15352

wrong answer

Provide the Qn link as well :confused:

https://hack.codingblocks.com/contests/c/452/73

You have to print unique subsequence of the given string but as you are saving all the subsequences of the string it may possible that there are same subsequences as in
s = aab

Hi first of fall there is no need of mycompare function.
Second your mistake is you are not clearing vector after function call. So output is wrong. use v.clear() after function call.