👩💻 Join our community of thousands of amazing developers!
2077. Paths in Maze That Lead to Same Room A maze consists of n rooms numbered from 1 to n, and some rooms are connected by corridors. You are given a 2D integer array corridors where corridors[i] = [room1i, room2i] indicates that there is a corridor connecting room1i and room2i, allowing a person in the maze to go from room1i to room2i and vice versa. The designer of the maze wants to know how confusing the maze is. The confusion score of the maze is the number of different cycles of length 3....