Survive from Stack Overflow in Kotlin

Revision en1, by liouzhou_101, 2020-05-19 19:12:28

DFS is commonly used in those problems about trees and graphs. However, an unpopular guy — STACK OVERFLOW — often appears.

The issue about the size of the stack is discussed here. However, only a few languages have been discussed there. For example, in CodeForces platform, the stack size of C/C++ is 256MB, while, that of JAVA is poorly 64MB. MikeMirzayanov said he would change it but it seems he forgot it (or at least the stack overflow issue is not resolved for every language). Fortunately, There is indeed a solution to JAVA.

The Kotlin Heroes Episode will be held in a few days.

Tags kotlin, stack, thread

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English liouzhou_101 2020-05-19 19:48:11 467 Tiny change: 'g 256MB.\nI am not' -> 'g 256MB.\n\nI am not' (published)
en3 English liouzhou_101 2020-05-19 19:35:03 247
en2 English liouzhou_101 2020-05-19 19:32:21 683
en1 English liouzhou_101 2020-05-19 19:12:28 741 Initial revision (saved to drafts)