Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 3rd, 2017, 01:22 PM
AGS AGS is offline
Wrox Technical Editor
 
Join Date: May 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Optimized QuickSort p.140 psuedocode error

Hello,
In pseudocode for the algorithm the condition to swap current element is now defined as
Code:
If the current element <= pivot
but it should be >= according to the implementation that follows and the preceding explanation
Quote:
...each time you find a value greater than or equal to the pivot, you need to move it to the right, into G.
__________________
Alexey Gorkov





Similar Threads
Thread Thread Starter Forum Replies Last Post
Quicksort with duplicate values Choucrouteman BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 2nd Ed ISBN: 978-0-470-12167-2 1 May 18th, 2018 10:24 AM
Optimized Quicksort (3rd ed., p 142) mjr BOOK Programming Interviews Exposed: Secrets to Landing Your Next Job 3rd Edition 1 July 11th, 2017 03:20 PM
EDMFunction on Page 140 Cza102282 BOOK: Professional ASP.NET MVC 2 22 May 6th, 2011 04:41 PM
Optimized method to post data & format into Excel shampabera Excel VBA 1 July 14th, 2005 09:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.