Last active
June 5, 2020 18:37
-
-
Save bkb181/b6fcc8e74536981ab1867645ba75f1a1 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 | | |
+==================+=================+==================+ | |
| Depth First Search Approach | O(4^n) | O(n) | | |
+------------------+-----------------+------------------+ | |
| Breadth-First Search Approach | O(!n) | O(n) | | |
+------------------+-----------------+------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment