c programming
F. Quick Sort(3154) Description Given a positive integer sequence, no more than 5000. Design a function to do Quick sorting on it(ascending). Then print out sorted list. Take the middle of list as the pivot. Input First line enter a number(n). Second line enters n integers Output Output the sorted array. 10 number each line separated by one space. Last line maybe has less than 10 number. Examples input 复制 20 18 13 36 15 42 10 3 5 9 12 8 28 21 25 30 31 45 23 19 11 output 复制 3 5 8 9 10 11 12 13 15 18 19 21 23 25 28 30 31 36 42 45
F. Quick Sort(3154) Description Given a positive integer sequence, no more than 5000. Design a function to do Quick sort
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
F. Quick Sort(3154) Description Given a positive integer sequence, no more than 5000. Design a function to do Quick sort
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!