lamda_cdm's blog

By lamda_cdm, history, 22 months ago, In English

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

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it