Hello everybody. Please help me with the following problem:
I am learning algorithm Quick Sort. My teacher said that if I choose the middle pivot, there are arrays that many repeating elements will give wrong results.
But I have tried a lot of arrays have many repeat like that but have not seen any cases that give wrong results.
Explain to help me with what my teacher said.
Thank you very much.
Or, is there any problem with the above algorithm? A my friend said, tried this algorithm with many repeated numbers and encountered a wrong case, and I haven't seen it before...