Query with the question explained in the video

Instead of taking a vector size we could just multiplied one component size with others Can we?

Hello @chemant077,

Can you specify the line where they have use the vector size?
I cannot find it in the video.

And yes, if you want all the possible pairs from two components, then you can take the product of their size.

39.33 they took a vector of size

at the end in the ans vairable they took n - G.get_parent_i(i) how does it contain 12 like there are only two components one of size 3 and other of 2 rest are zero in the size vector so it must be 5

Hey @chemant077,

Have you marked it as resolved?
I cannot see your doubt anymore and hence, the video.