Doubt about given explanation in the problem "Subsequence Frequency Counting"

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.

2 Likes

Use comment section

1 Like

I posted there, but did not get reply

Copying and pasting my usual response:

I see you’ve already tried the Comments section; please wait a while longer :slight_smile:

2 Likes