You need to sign in to do that
Don't have an account?
Vaibhav Babrekar
Can anyone help me to solve quick sort algorithm using Apex code
I want to sort the elements of a list in ascending order by using the quick sort algorithm.
Thanks in Advance
Thanks in Advance
Hey Vaibhav,
Can you kindly elaborate the requirement?
Thanks,
Priya Ranjan
I want to sort list of integers using the Quick sort algorithm. Such as if I provide list as {20,30,70,10,40} so after quick sort it shoud return me sorted list as {10, 20, 30, 40, 70}
So lets say you have some list of integer, then pass those ineteger to list like below :- Now for ASCENDING ORDER
Now for DESCENDING ORDER
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Thanks & Regards,
Priya Ranjan