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

Автор hussain_alasmawi, история, 7 месяцев назад, По-английски

I'm getting runtime error in test 39.

is there any solution to optimize my code?

229671807

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

»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I have found your error. The problem is that you are using recursion, which in python has a limit. I set it to 100k and it fixied the error but then there was a error on test case 43 which was the same "Recursion limit" Use the commands import sys sys_setrecursionlimit(x)