Merge Two Sorted Lists

Problem

Given two non-decreasing integer arrays A and B, merge them into a new non-decreasing array and print it.

Input (stdin)

  • Line 1: integers n m
  • Line 2: n integers for array A...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: