Help me out in this problem


@KartikKhariwal are u there ?

yup checking …

@Kartikkhariwal1 okay bro

Hey @shivammishra20121999
This question is of DP to find smallest subseq of length K

Also your code is not giving any output for this
1
baacb
2

@Kartikkhariwal1 my logic is wrong why?

For many inputs ur code is not giving any output
Say
2
abcds
3
agdhwuw
2