miniluigi's blog

By miniluigi, history, 8 years ago, In English

Hello, I recently solved Snail Trails (problem statement here, and I have no idea why my code did not TLE. In fact, it finished in 0.011 seconds on all test cases. To summarize my approach, it's a brute-force DFS on every possible option. Can anyone help me analyze the time complexity of my code? Any help and insight would be appreciated. Thanks!

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