NEED HELP IN Hanging Hearts 1740 E

Revision en2, by lamda_cdm, 2023-03-08 10:17:14

I was trying this problem. Tried a greedy solution , where I number the nodes starting from the lower level . And take every leaf node one by one . Someway it's failing . I tried making counter test cases but couldn't find a case where my solution failed. Here's my link 196466553 to the submission . Problem 1740E - Hanging Hearts

Thanks in advance

Tags help, trees

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English lamda_cdm 2023-03-08 10:17:14 21 Tiny change: 'lem:1740E]' -> 'lem:1740E]\n\nThanks in advance'
en1 English lamda_cdm 2023-03-08 10:16:16 372 Initial revision (published)