Skip to main content
Loading page content
Explore
Learnings
Mental Math
Dashboard
More
Algo
Flow
Visualizers
Learnings
Quizzes
Mental Math
Dashboard
Log in
Sign up
Loading quiz challenge
Back to Visualizer
Question 1 of 5
Merging
• Merge Two Arrays
What is the simplest way to merge two unsorted arrays of sizes m and n?
A
Concatenate them into a new array of size m+n
B
Sort each array first and discard duplicates
C
Convert both into hash sets
D
Merge them into a single sorted array using binary search