Блог пользователя daihan

Автор daihan, 8 лет назад, По-английски

Problem : https://toph.co/p/keep-moving What is the logic of problem KEEP MOVING . Can you please explain ? My logic is : I am leveling the graph , using adjacent of X as a source node . If i got a odd level node and this node has no adjacent node Gobu wins , if for all possible there has no node such that odd level node and this node has no adjacent node i am printing gobu cant win .

My code: Code

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится