Navratri Sale: Get Upto 30% OFF on Live 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
  • 24+ Video Courses
  • 825+ Hands-On Labs
  • 400+ Quick Notes
  • 125+ Skill Tests
  • 10+ 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