We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If I am not mistaken there is a mistake in the Explanation section. It says that the first value (4) should be added to the equal array AND the right array. The problem suggests it should only be in the equal array. If is added to both it will be printed twice and the output incorrect.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Quicksort 1 - Partition
You are viewing a single comment's thread. Return to all comments →
If I am not mistaken there is a mistake in the Explanation section. It says that the first value (4) should be added to the equal array AND the right array. The problem suggests it should only be in the equal array. If is added to both it will be printed twice and the output incorrect.