摘要:(http://leetcode.com/2011/01/ctrla-ctrlc-ctrlv.html)Imagine you have a special keyboard with the following keys:ACtrl + ACtrl + CCtrl + Vwhere CTRL+A,... 阅读全文
Studious Student Problem Analysis
2015-01-12 18:48 by 李涛的技术博客, 215 阅读, 0 推荐, 收藏, 编辑
摘要:(http://leetcode.com/2011/01/studious-student-problem-analysis.html)You've been given a list of words to study and memorize. Being a diligent student ... 阅读全文
Sliding Window Maximum
2015-01-12 17:21 by 李涛的技术博客, 268 阅读, 0 推荐, 收藏, 编辑
摘要:(http://leetcode.com/2011/01/sliding-window-maximum.html)A long array A[] is given to you. There is a sliding window of size w which is moving from th... 阅读全文
Find the k-th Smallest Element in the Union of Two Sorted Arrays
2015-01-11 21:40 by 李涛的技术博客, 348 阅读, 0 推荐, 收藏, 编辑
摘要:(http://leetcode.com/2011/01/find-k-th-smallest-element-in-union-of.html)Given two sorted arrays A, B of size m and n respectively. Find the k-th smal... 阅读全文
Median of Sorted Arrays
2015-01-11 14:37 by 李涛的技术博客, 150 阅读, 0 推荐, 收藏, 编辑
摘要:(http://leetcode.com/2011/03/median-of-two-sorted-arrays.html)There are two sorted arrays A and B of size m and n respectively. Find the median of the... 阅读全文
News feed
2015-01-10 14:26 by 李涛的技术博客, 254 阅读, 0 推荐, 收藏, 编辑
摘要:1. Level 1.0Database Schema:a. UserUserIDNameAge1Jason252Michael26b. FriendshipFriendshipIDSourceIDTargetID112221c. NewsNewsIDAuthorIDContentTimestamp... 阅读全文
Design Tiny URL
2015-01-03 14:37 by 李涛的技术博客, 498 阅读, 0 推荐, 收藏, 编辑
摘要:Design a system to take user-provided URLs and transform them to a shortened URLs that redirect back to original.Questions:1. How many URLs shall we k... 阅读全文
The Painter's Partition Problem Part II
2014-12-24 21:35 by 李涛的技术博客, 360 阅读, 1 推荐, 收藏, 编辑
摘要:(http://leetcode.com/2011/04/the-painters-partition-problem-part-ii.html)This is Part II of the artical: The Painter's Partition Problem. Please read ... 阅读全文
Permutations II
2014-12-22 18:42 by 李涛的技术博客, 172 阅读, 0 推荐, 收藏, 编辑
摘要:Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique p... 阅读全文
Permutations
2014-12-22 18:24 by 李涛的技术博客, 279 阅读, 0 推荐, 收藏, 编辑
摘要:Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3... 阅读全文