C
C#14mo 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
Buddy14mo 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
Accord14mo 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.