-->
当前位置:首页 > 题库

PROGRAMMING:Mpsort: a recursive algorithm for bubble sort

Luz5年前 (2021-05-10)题库405
Define a function mpsort to sort a group of data from small to large. Write a program to read in a number of integers and store them in the objects of appropriate data structure type. Then call the mpsort function to sort the elements in the object and output.
###Input format:
A set of integers separated by spaces.
###Output format:
Sort a set of integers separated by spaces. For example: with a space at the end.
###Input example:
Here is a set of inputs. For example:
```in
1 3 5 7 4 2 6 8 10 9
```
###Output example:
The corresponding output is given here. For example:
```out
1 2 3 4 5 6 7 8 9 10
```







answer:If there is no answer, please comment