Increase Recursion Stack Limit in Python

Revision en1, by Samyak_cool, 2024-02-13 20:06:04

During the recent contest, I was solving F and faced run time error on Test — 6, where recursion stack limit exceeded the default 1000 limit set by python. I tried to increase it using sys.setrecursionlimit but it was of no use. Please tell how to increase recursion stack limit. Here is my submission — 246218059, Submission link

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Samyak_cool 2024-02-13 20:06:04 442 Initial revision (published)