Beautiful Vertices Question

https://ide.codingblocks.com/s/65106

Wrong Answer

@Khushboo Please Reply

Please Reply…

Monika make count of 2 things

  1. Each vetices has how many child using bfs
  2. Parent of Each vertices using dfs
    now then compare
    vetices[child]>vertices[child[parent]]
    for code reply

I have done it same.

Hi Monika, pls review the part in your code where you are counting the children.

use this https://ide.codingblocks.com/s/66094

Hey Monika, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.

Finally found a really good explanation of this question. Do check it out
Explained Really very well