hussain_alasmawi's blog

By hussain_alasmawi, history, 6 months ago, In English

I'm getting runtime error in test 39.

is there any solution to optimize my code?

229671807

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
6 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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)