ronaldocr7's blog

By ronaldocr7, history, 5 years ago, In English

question here is my_solution

My approach I have replaced vertices given in query with their immediate parent and then checked if the nodes in the sequence are child of each other....
My code has failed on 100th testcase that's only I am asking for help

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it

By ronaldocr7, history, 5 years ago, In English
  • Vote: I like it
  • -1
  • Vote: I do not like it

By ronaldocr7, history, 5 years ago, In English

contest :-- https://codeforces.me/contest/1174 question 2nd link :-- https://codeforces.me/contest/1174/problem/B

I have the same logic like various other contestants have used but I got TLE on test case number 63 as i had used JAVA whereas others have used C++. this is a very disappointing for me and i am not getting the logic behind this. Everyone knows that JAVA is bit slow than C++ but this is not acceptable that u change your logic or thinking process on this fact My submitted cod is 55027519: please anyone explain me why this happened;

Full text and comments »

  • Vote: I like it
  • -10
  • Vote: I do not like it