Java: Merge Two Sorted Arrays

Level : Beginner
Mentor: Shailendra Chauhan
Type : GuidedLab
Points : 10
Duration : 00:20:00

Lab Details

Difficulty Level: EASY

Problem Statement:

You are given two arrays that are already sorted. You need to merge both the given array in such a way that the resultant array is also sorted.

Input:

arr1[] = {1,2,3,4}

arr2[] = {5,6,7,8}

Output:

arr3[] = {1,2,3,4,5,6,7,8}


Self-paced Membership
  • 22+ Courses
  • 750+ Hands-On Labs
  • 200+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A
  • 10+ Real-world Projects
  • Career Coaching
  • Email Support
Upto 66% OFF
KNOW MORE..

To get full access to all courses

Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this