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

Автор Gaspiboy, история, 4 года назад, По-английски

102694A - 3 - Circumference of a Tree - my code : 93116273

hi guys, i have trouble to pass this problem. My code seems to work but it is too slow ( i have the error: Time limit exceeded on test 4) the thing is that the complexity is already O(n) and i really don't know how to make it faster. I use python and i know that this language is slower than the others, but i saw that other people succeeded to do this challenge with pypy3. Do you have any tips for me ?

Thank you very much !!

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

»
4 года назад, # |
  Проголосовать: нравится +22 Проголосовать: не нравится

Use C++