The Gateway to Computer Science Excellence
0 votes
298 views
THISCOURSEISOVER
Choose the last elements as pivot elements (R). Also for duplicates, adopt the convention that both pointers stop.

a) EHIOCOIERRUSSVTS

b) EHISCOIERRUSOVTS

b) EHIOCOUESRTSSVTR

c) EHIOOCIERRUSSVTS
in Algorithms by | 298 views
+1
i`m getting hicoeioerssuvrs , and "Also for duplicates, adopt the convention that both pointers stop. " its not that clear to me , r is compare to r i didnt swap it i did it like this
0

this is how it has been solved but I don't know why?

0
This method is incorrect.

The correct answer is HICOEIOERTSUVRS from the traditional method.

Regards

1 Answer

0 votes

the answer is hicoeioerssuvrs prany datta is right.    and saurabh sharma the question may be wrong or it must be incomplete because they may ave used some other implementation of quick sort.

by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,345 questions
60,489 answers
201,829 comments
95,296 users