Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 3rd Edition
This is the forum to discuss the Wrox book Programming Interviews Exposed: Secrets to Landing Your Next Job, 3rd Edition by John Mongan, Noah Kindler, Eric Giguere; ISBN: 978-1-118-26136-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 27th, 2016, 02:50 AM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Quick sort with duplicate values

Hi all,

I published a new thread to the wrong forum:

Quicksort with duplicate values

I meant it to be for 3d edition, not 2d.
If anybody could move it to this forum that would be great?

Anyway, feel free to react!

Thanks

Olivier
Reply With Quote
  #2 (permalink)  
Old July 11th, 2017, 10:58 AM
Wrox Author
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Oct 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In my tests the implementation on pp 128-29 works fine when there are duplicated values. If there are duplicates of the pivot value, they end up in the right (rather than left) partition.

If you're seeing different behavior than this, can you post an input that reproduces the failure? (And describe the nature of the failure: array returned in unsorted order, infinite recursion, etc.?)

John
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to return values of rows that returns row numbers of duplicate values bharatmvs Excel VBA 1 December 5th, 2014 02:19 AM
Quick Sort in C Code yulin11 Visual C++ 1 March 11th, 2013 10:51 PM
Assistance with duplicate values fattmatt SQL Language 6 October 21st, 2009 04:26 AM
Quick workaround for sort, group by program & date? athos XSLT 19 May 18th, 2009 01:50 PM



All times are GMT -4. The time now is 08:55 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.