Created
September 9, 2015 17:14
-
-
Save felipesilva/55dd97f7a74047ad3873 to your computer and use it in GitHub Desktop.
Sorted Merge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given 2 sorted arrays, merge them into one single sorted array and print its elements to standard output. | |
Expected complexity: O(N) | |
Example input: | |
a: 2 3 7 8 8 | |
b: 7 8 13 | |
Example output: | |
2 3 7 7 8 8 8 13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment