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
English,
6 months ago
Science,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Science,
1 year ago
Science,
1 year ago