The Gateway to Computer Science Excellence
0 votes
241 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 Junior (567 points) | 241 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 Boss (16k points)

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
50,647 questions
56,492 answers
195,439 comments
100,694 users