Merge and Sort
Join a and b into one array containing all items of both (repeats are kept), and return it sorted from smallest to largest.
Example 1
a [5,1]
b [3,1,9]
returns [1,1,3,5,9]
Together: 5, 1, 3, 1, 9. Sorted: 1, 1, 3, 5, 9.
Constraints
1 <= len(a), len(b) <= 50
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Missing NumbersEasy
- Most Common ValueEasy
- Most Different PositionEasy
- Outlier CountEasy
- Pair DifferencesEasy
- Percent ChangeEasy
- Row RangesEasy
- Rows With a ZeroEasy