daihan's blog

By daihan, 8 years ago, In English

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

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

| Write comment?