Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davidim
· 7y ago · 0 comments
Recursive division may be elegant, but it seems that may also have its disadvantages.
Comments
[–]
wakamoleguy
7y ago
One trick you could use is to add a setTimeout or asnyc/await somewhere during the recursion. By forcing a step to be asynchronous, the stack count will be reset.