随笔分类 -  leetcode

摘要:https://leetcode.com/problems/integer-to-english-words/ Convert a non-negative integer to its english words representation. Given input is guaranteed 阅读全文
posted @ 2016-08-12 06:46 流白 阅读(254) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/lru-cache/ Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following op 阅读全文
posted @ 2016-06-30 23:49 流白 阅读(478) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/integer-break/ Given a positive integer n, break it into the sum of at least two positive integers and maximize the prod 阅读全文
posted @ 2016-06-30 00:03 流白 阅读(156) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/data-stream-as-disjoint-intervals/ Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize th 阅读全文
posted @ 2016-06-29 21:26 流白 阅读(168) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/remove-duplicate-letters/ Given a string which contains only lowercase letters, remove duplicate letters so that every l 阅读全文
posted @ 2016-06-29 09:21 流白 阅读(224) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/russian-doll-envelopes/ You have a number of envelopes with widths and heights given as a pair of integers (w, h). One e 阅读全文
posted @ 2016-06-29 05:45 流白 阅读(393) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/design-twitter/ Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is 阅读全文
posted @ 2016-06-29 01:09 流白 阅读(346) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/count-of-range-sum/ Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. R 阅读全文
posted @ 2016-06-29 01:02 流白 阅读(218) 评论(0) 推荐(0)
摘要:For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote 阅读全文
posted @ 2016-05-17 12:16 流白 阅读(126) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/palindrome-pairs/ Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the 阅读全文
posted @ 2016-05-12 22:03 流白 阅读(407) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/word-ladder-ii/ Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation 阅读全文
posted @ 2016-03-16 01:14 流白 阅读(402) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/word-ladder/ Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transfor 阅读全文
posted @ 2016-03-15 09:39 流白 阅读(320) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/ Follow up for problem "Populating Next Right Pointers in Each Node". Wha 阅读全文
posted @ 2016-03-13 05:11 流白 阅读(177) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/binary-tree-right-side-view/ Given a binary tree, imagine yourself standing on the right side of it, return the values o 阅读全文
posted @ 2016-03-12 23:56 流白 阅读(222) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/binary-search-tree-iterator/ Implement an iterator over a binary search tree (BST). Your iterator will be initialized wi 阅读全文
posted @ 2016-02-26 22:40 流白 阅读(171) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/substring-with-concatenation-of-all-words/ You are given a string, s, and a list of words, words, that are all of the sa 阅读全文
posted @ 2016-02-25 06:04 流白 阅读(190) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/maximum-product-of-word-lengths/ Given a string array words, find the maximum value of length(word[i]) * length(word[j]) 阅读全文
posted @ 2016-02-20 05:17 流白 阅读(288) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/anagrams/ Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "b 阅读全文
posted @ 2016-02-20 02:17 流白 阅读(254) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/different-ways-to-add-parentheses/ Given a string of numbers and operators, return all possible results from computing a 阅读全文
posted @ 2016-02-03 08:29 流白 阅读(155) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/longest-increasing-path-in-a-matrix/Given an integer matrix, find the length of the longest increasing path.From each ce... 阅读全文
posted @ 2016-01-20 22:48 流白 阅读(1398) 评论(0) 推荐(0)