5. Merge

Difficulty: 

Given two sorted arrays, merge them into a single sorted array. Please do not use the bult-in sort functions.

Input:

merge([
  1,
  3,
  5
], [
  2,
  4,
  5,
  6,
  8
]);

Output:

[
  1,
  2,
  3,
  4,
  5,
  5,
  6,
  8
]

Time Limit:

1000 (ms)

Hint (hover to see):

  • Hint #1



Results

ProblemsAcceptedWrongTimed OutError
80000

Input:

Expected Output:

Output: