Count Subsequences Doubt

I took help from editorial for the code
code: https://ide.codingblocks.com/s/280411

but I am unable to understand the use of hash array.
I get a different answer if I remove the hash array

Please Explain

@pgarg maybe some bug also previous count should be inside the testcases loop
just do the prev count array inside the testcases loop and remove hash it works


dont forget to hit like and mark resolved if cleared :smiley:

1 Like