Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, This is my first question here and I hope you will help me . I have to do assignment for tomorrow which looks like this :

"You need to implement function that sorts array of numbers using quicksort algorithm.

Additionally the function should return count of checks in function Partition on line 4. Current pseudocode doesn't implement this, so you need to make changes in order to get that count."


Maybe you can help me??
Posted
Updated 17-Jul-23 10:58am
v2
Comments
Tomas Takac 6-Jan-15 10:27am    
This is clearly your homework. We don't do your homework for you. Ask a specific question. Show what did you try so far. Explain where are you stuck.
Member 11356225 6-Jan-15 10:32am    
I don't understand how to implement function and I need help to get it. How function should look like?
BillWoodruff 6-Jan-15 10:34am    
Your function will look like the the working code you find on the internet if you search on Quicksort C#, and start studying, rather than stop talking about how it might "look."

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
And the sooner you start, the sooner you will finish...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900