Merging Strings in Alphabetic Order

This lesson will teach you how to merge two already sorted strings using recursion so that the resulting string is also sorted.

What do we mean by merging alphabetically?

When given two strings that are in alphabetic order, we can combine them to create a string that is both sorted alphabetically and the combination of those two strings.

To better understand, look see the illustration below:

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