leetcode讲解--841. Keys and Rooms

2019-01-02
阅读 2 分钟
1.6k
There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room.

leetcode讲解--959. Regions Cut By Slashes

2018-12-30
阅读 4 分钟
2.7k
In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters divide the square into contiguous regions.

leetcode讲解--797. All Paths From Source to Target

2018-12-19
阅读 2 分钟
2k
Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order.