上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页
摘要: 题目: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, suc 阅读全文
posted @ 2017-05-18 11:32 panini 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For ex 阅读全文
posted @ 2017-05-18 06:31 panini 阅读(326) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-05-16 01:26 panini 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get 阅读全文
posted @ 2017-05-15 08:26 panini 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Problem Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find the place to build a post office, the d 阅读全文
posted @ 2017-05-15 02:32 panini 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 题目: Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, 阅读全文
posted @ 2017-05-15 00:06 panini 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are lab 阅读全文
posted @ 2017-05-14 22:53 panini 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 whether these edges 阅读全文
posted @ 2017-05-14 12:01 panini 阅读(190) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a 2D grid, each cell is either a wall 2, a zombie 1 or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/do 阅读全文
posted @ 2017-05-14 10:33 panini 阅读(517) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a knight in a chessboard (a binary matrix with 0 as empty and 1 as barrier) with a source position, find the shortest path to a desti 阅读全文
posted @ 2017-05-14 09:16 panini 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页