C
C#2y ago
Krimo

❔ Stack Overflow

I get a stackoverflow when reading list with more elements than 10K. I need to do this with quicksort algortihm and keep in a recursive form. I found a solution that uses an iterative form but that's not what I need.
2 Replies
Buddy
Buddy2y ago
Recursive without a specific 'depth' boundary will give you stack overflow. You can have a while-loop instead. https://www.geeksforgeeks.org/tail-call-elimination/
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server