Magical algorithm
This article is still in the draft stage, so its content may change.
How to merge two arrays? How to sort the elements of an array?
The ideas that come to your mind are called algorithms, and they are the soul of a program. If you have more interest in algorithms, please continue to learn more about them.
Reference
If you want to learn more, the following are some references.
《算法图解》
《大话数据结构》