Does quicksort use pointers in cpp? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Does quicksort use pointers in cpp?

22nd Mar 2017, 7:59 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
4 Answers
+ 8
....rt!
24th Mar 2017, 2:56 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
+ 8
better than bubble atleast
24th Mar 2017, 3:11 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
+ 5
right...recursion is better O() decreases significantly..it becomes O[log N] rt?
24th Mar 2017, 12:05 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
+ 3
Quicksort is a sorting technique, used to sort the elements​ of array in ascending or descending order. Normally you don't need to use pointers. But yeah you can also use pointers to implement Quicksort!!
23rd Mar 2017, 6:11 AM
Harjeet Singh
Harjeet Singh - avatar