Skip to content

Commit d2aca97

Browse files
authored
Update keys-and-rooms.py
1 parent d548c32 commit d2aca97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Python/keys-and-rooms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Time: O(n!)
2+
# Space: O(n)
3+
14
# There are N rooms and you start in room 0.
25
# Each room has a distinct number in 0, 1, 2, ..., N-1,
36
# and each room may have some keys to access the next room.

0 commit comments

Comments
 (0)