Merging Strings in Alphabetic Order

This lesson will teach you how to merge two already sorted strings so that the resultant string is also sorted

What do we mean by merging alphabetically?

Given two strings that are already in alphabetic order, we can combine them to create a string that is sorted alphabetically and is a combination of the two strings given. For a better understanding, look at the illustration below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.