4 3
1 2
2 3
2 4
Here ans will be 2 acc to question i.e 1 and 2
Beautiful vertices
question definaion : A vertex is called beautiful if it has more children than its parent.
here only node 2 is having more children than its parent so the count is 1 (ans)
why not 1 is consider in beautiful
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.