String Window Problem


i am trying this code for the problems.
but getting only 7/9 test cases passed.
Two tesy cases are showing wrong, please help!!

jshbjahbcdsjdnocloidfhibdckadlivcnsnksonjshsbdinihgbl.sksjsocksbuhbfeuyrefeujsjdhbhsscaodainabshgblocbsjasbk
codingblocks

for this i/p
the asnwer is wrong

required answer
caodainabshgblocbsjasbk

please tell me why are u using so many sets in ur code
u can simply do it using array of size 256

Thanks! Can you share your code so that I could understand what you meant by using array of size 256

refer editorial
https://hack.codingblocks.com/app/contests/1344/363/problem

it has entire explanation

I was not able to find any editorial there, it was just a problem on hackerblocks

to your input :jshbjahbcdsjdnocloidfhibdckadlivcnsnksonjshsbdinihgbl.sksjsocksbuhbfeuyrefeujsjdhbhsscaodainabshgblocbsjasbk codingblocks, My code gives a better answer “dinihgbl.sksjsoc”

@Chhavi, Is the question saying that I have to produce all the characters without repetitions or including the repetitions on the give second string, Please help

i dont understand what do u mean by this

the question is asking u to tell the min width of window in string 1 such that all chracters of string 2 are present in that window