Last active
June 6, 2020 09:05
-
-
Save bkb181/a0655d9c01c19664007120b904f0776d to your computer and use it in GitHub Desktop.
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
| Approaches | Time Complexity | Space Complexity | | |
+==================+=================+==================+ | |
| Reversing the lists and merging | O(n) | O(n) | | |
+------------------+-----------------+------------------+ | |
| Merging the list and reversing | O(n) | O(n) | | |
+------------------+-----------------+------------------+ | |
| Iterative Approach | (On) | O(1) | | |
+------------------+-----------------+------------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment