In this problem, a tree is an undirected graph that is connected and has no cycles. The given in ...
In this problem, a rooted tree is adirectedgraph such that, there is exactly one node the root for which all other nodes are descendants of this node, plus every node has exactly one parent, except f ...
2018-02-12 22:29 8 7359 推荐指数:
In this problem, a tree is an undirected graph that is connected and has no cycles. The given in ...
A message containing letters from A-Z is being encoded to numbers using the following mapping way ...
Given two integers n and k, you need to construct a list which contains n different positive i ...
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3] ...
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by ro ...
Given a picture consisting of black and white pixels, and a positive integer N, find the number o ...
< v,表示连接顶点u 和v的无向图的边。返回一条可以删去的边,使得结果图是一个有着N个节点的 ...
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) c ...