Given an array of size n + m where first n elements are sorted and rest m elements are not sorted ; sort the whole array in_place !
Answers
Answered by
0
Answer:
__
Explanation:
define an array size of m.
and store in this array unsorted numbers.
now use buble sort on small array.and change last m elements of big array by sorted array's number. this photo about buble sort.
Attachments:
Similar questions
Social Sciences,
5 months ago
Science,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Science,
1 year ago
Science,
1 year ago