Plant Trees, Save Life

There are n students in a school. Some of them are friends with each other. You want to make the sch…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

why the ans cant be submitted, it is showing unauthorized.