You are given n rooms labeled from rooms, where rooms[i] contains the keys available inside room i. Each key is an integer representing the label of a room it can unlock.
You start in room
Return true if it is possible to enter every room, otherwise return false.
Constraints:
n == rooms.length
n
rooms[i].length
rooms[i].length)
rooms[i][j] n
All values in rooms[i] are unique
You are given n rooms labeled from rooms, where rooms[i] contains the keys available inside room i. Each key is an integer representing the label of a room it can unlock.
You start in room
Return true if it is possible to enter every room, otherwise return false.
Constraints:
n == rooms.length
n
rooms[i].length
rooms[i].length)
rooms[i][j] n
All values in rooms[i] are unique