08 2017 档案

摘要:Substring Anagrams Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English l 阅读全文
posted @ 2017-08-20 05:07 Tri_tri_tri 阅读(208) 评论(0) 推荐(0)
摘要:Topological Sorting Given an directed graph, a topological order of the graph nodes is defined as follow: For each directed edge A -> B in graph, A mu 阅读全文
posted @ 2017-08-18 08:20 Tri_tri_tri 阅读(173) 评论(0) 推荐(0)
摘要:Graph Valid Tree Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whethe 阅读全文
posted @ 2017-08-18 03:34 Tri_tri_tri 阅读(109) 评论(0) 推荐(0)
摘要:Description: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 阅读全文
posted @ 2017-08-18 03:16 Tri_tri_tri 阅读(135) 评论(0) 推荐(0)