Home > Back-end >  Why the merge function will automatically sort, such as a,6,10,8 (2) b (3, 5, 7)
Why the merge function will automatically sort, such as a,6,10,8 (2) b (3, 5, 7)

Time:09-27

Merge (a, b) to get the result is 2,3,5,6,7,8,10,3,5,6,7,10,8 instead of two

CodePudding user response:

http://www.cplusplus.com/reference/algorithm/merge/? Kw=the merge

CodePudding user response:

The function of the merge function is combine two sort good for an orderly
As for to go to see the code