摘要: Design a Phone Directory which supports the following operations: Example: Analysis: We record the last used number and also maintain a hashset to rec 阅读全文
posted @ 2016-08-08 13:23 LiBlog 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do 阅读全文
posted @ 2016-08-08 04:57 LiBlog 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be for 阅读全文
posted @ 2016-08-08 03:47 LiBlog 阅读(144) 评论(0) 推荐(0) 编辑