摘要:
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
新一代的天皇巨星
阅读(335)
评论(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
新一代的天皇巨星
阅读(159)
评论(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
新一代的天皇巨星
阅读(198)
评论(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
新一代的天皇巨星
阅读(146)
评论(0)
推荐(0)
摘要:
73. Set Matrix Zeroes Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Hide Tags Array Hide Similar Probl 阅读全文
posted @ 2016-07-25 07:33
新一代的天皇巨星
阅读(149)
评论(0)
推荐(0)
摘要:
222. Count Complete Tree Nodes Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a compl 阅读全文
posted @ 2016-07-25 06:28
新一代的天皇巨星
阅读(106)
评论(0)
推荐(0)
摘要:
169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. Y 阅读全文
posted @ 2016-07-25 06:08
新一代的天皇巨星
阅读(269)
评论(0)
推荐(0)
摘要:
48. Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-pl 阅读全文
posted @ 2016-07-25 05:24
新一代的天皇巨星
阅读(174)
评论(0)
推荐(0)
摘要:
134. Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas 阅读全文
posted @ 2016-07-25 03:17
新一代的天皇巨星
阅读(210)
评论(0)
推荐(0)
摘要:
368. Largest Divisible Subset Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this sub 阅读全文
posted @ 2016-07-25 01:58
新一代的天皇巨星
阅读(193)
评论(0)
推荐(0)
摘要:
89. Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing 阅读全文
posted @ 2016-07-25 01:21
新一代的天皇巨星
阅读(211)
评论(0)
推荐(0)
摘要:
26. Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the ne 阅读全文
posted @ 2016-07-25 01:07
新一代的天皇巨星
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号