It is a problem from August Long Challenge 2020
Problem is “Subsequence Frequency Counting”
I am facing the problem in understanding the way example output is written.
i/p : 1 2 2
in explanation :
No. of 1 = 3
No. of 2 = 4
So printed as 3 4 0
why not 3 0 4 ?
If we follow above , explanation exactly i.e.( 3, 4, 0 ) then 1st output should be ( 6, 0, 1 ) not (0, 6, 1)
How that 0 is changing the place ?
Can anyone explain little bit ?
I have posted my doubt in comment section of the problem but did not get any reply.
Thank you.