2017年9月17日

摘要: https://leetcode.com/problems/word-search-ii/description/ Given a 2D board and a list of words from the dictionary, find all words in the board. Each 阅读全文
posted @ 2017-09-17 12:37 Yu's Garden 阅读(45) 评论(0) 编辑

2015年7月11日

摘要: https://leetcode.com/submissions/detail/32662938/Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST...阅读全文
posted @ 2015-07-11 14:50 Yu's Garden 阅读(1597) 评论(0) 编辑

2015年4月8日

摘要: Unique Paths IITotal Accepted:31019Total Submissions:110866My SubmissionsQuestionSolutionFollow up for "Unique Paths":Now consider if some obstacles a...阅读全文
posted @ 2015-04-08 03:04 Yu's Garden 阅读(330) 评论(0) 编辑
摘要: A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...阅读全文
posted @ 2015-04-08 02:38 Yu's Garden 阅读(443) 评论(0) 编辑

2015年4月4日

摘要: Remove Nth Node From End of ListTotal Accepted:46720Total Submissions:168596My SubmissionsQuestionSolutionGiven a linked list, remove thenthnode from ...阅读全文
posted @ 2015-04-04 15:25 Yu's Garden 阅读(327) 评论(0) 编辑
摘要: Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....阅读全文
posted @ 2015-04-04 13:48 Yu's Garden 阅读(836) 评论(0) 编辑

2015年3月30日

摘要: Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr...阅读全文
posted @ 2015-03-30 09:17 Yu's Garden 阅读(241) 评论(0) 编辑

2015年2月8日

摘要: K SUMMy Submissionshttp://www.lintcode.com/en/problem/k-sum/题目来自九章算法13%AcceptedGiven n distinct positive integers, integer k (k = 0) { ...阅读全文
posted @ 2015-02-08 08:40 Yu's Garden 阅读(5913) 评论(1) 编辑

2015年1月28日

摘要: Unique Binary Search Trees IIGiven n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, yo...阅读全文
posted @ 2015-01-28 16:40 Yu's Garden 阅读(1503) 评论(0) 编辑

2015年1月23日

摘要: 题目是:有2个10G的数据库,存储了一些string. 2者之间有一些重复的数据。请把它们合并为一个数据库,并且去除重复。限制:内存是4G例如: DB1: cmu, ucb, stanford, nyu DB2: ucsb, ucb, ucsd, cmu.两者合并后,应该是: DB: cmu,...阅读全文
posted @ 2015-01-23 17:23 Yu's Garden 阅读(796) 评论(0) 编辑

导航

公告

统计