上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 151. Reverse Words in a String Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the 阅读全文
posted @ 2016-08-01 04:58 新一代的天皇巨星 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 96. Unique Binary Search Trees Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, the 阅读全文
posted @ 2016-07-31 08:24 新一代的天皇巨星 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 201. Bitwise AND of Numbers Range Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive 阅读全文
posted @ 2016-07-31 08:09 新一代的天皇巨星 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 221. Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, gi 阅读全文
posted @ 2016-07-27 13:58 新一代的天皇巨星 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 376. Wiggle Subsequence A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between pos 阅读全文
posted @ 2016-07-26 12:48 新一代的天皇巨星 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 331. Verify Preorder Serialization of a Binary Tree One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null nod 阅读全文
posted @ 2016-07-26 12:47 新一代的天皇巨星 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 127. Word Ladder Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from begin 阅读全文
posted @ 2016-07-25 11:16 新一代的天皇巨星 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 365. Water and Jug Problem You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to d 阅读全文
posted @ 2016-07-25 10:02 新一代的天皇巨星 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 355. Design Twitter Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most re 阅读全文
posted @ 2016-07-25 08:04 新一代的天皇巨星 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 93. Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given  阅读全文
posted @ 2016-07-25 08:03 新一代的天皇巨星 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页