We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d548c32 commit d2aca97Copy full SHA for d2aca97
1 file changed
Python/keys-and-rooms.py
@@ -1,3 +1,6 @@
1
+# Time: O(n!)
2
+# Space: O(n)
3
+
4
# There are N rooms and you start in room 0.
5
# Each room has a distinct number in 0, 1, 2, ..., N-1,
6
# and each room may have some keys to access the next room.
0 commit comments