Month End Sale: Get Extra 10% OFF on Job-oriented Training! Offer Ending in
D
H
M
S
Get Now

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+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this