LeetCode: 841-Keys and Rooms 解題紀錄
Last Updated on 2022-12-20 by Clay
題目
There are n
rooms labeled from 0
to n - 1
and all the rooms are locked except for room 0
. Your goal is to visit all the rooms. However, you cannot enter a locked room without having its key.