上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 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 新一代的天皇巨星 阅读(147) 评论(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 新一代的天皇巨星 阅读(105) 评论(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 新一代的天皇巨星 阅读(268) 评论(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 新一代的天皇巨星 阅读(173) 评论(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 新一代的天皇巨星 阅读(191) 评论(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 新一代的天皇巨星 阅读(210) 评论(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)
摘要: 35. Search Insert Position 35. Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, return 阅读全文
posted @ 2016-07-24 13:27 新一代的天皇巨星 阅读(204) 评论(0) 推荐(0)
摘要: 33. Search in Rotated Sorted Array Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 阅读全文
posted @ 2016-07-24 07:58 新一代的天皇巨星 阅读(154) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页