### LeetCode从零单刷

13 已关注
64篇博文
• #### 【LeetCode从零单刷】Bulb Switcher

题目： There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off...

2015-12-19 16:50
8398
• #### 【LeetCode从零单刷】Convert Sorted List to Binary Search Tree

题目： Given a singly linked list where elements are sorted in ascending order, convert it to a height...

2015-11-28 21:42
703
• #### 【LeetCode从零单刷】Reverse Bits

题目： Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represe...

2015-11-28 21:19
1269
• #### 【LeetCode从零单刷】Merge Sorted Array

题目： Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array....

2015-11-28 21:07
1063
• #### 【LeetCode从零单刷】Kth Largest Element in an Array

题目： Find the kth largest element in an unsorted array. Note that it is the kth largest element in...

2015-11-28 20:55
1154
• #### 【LeetCode从零单刷】Minimum Depth of Binary Tree

题目： Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along ...

2015-11-28 20:24
1105
• #### 【LeetCode从零单刷】Perfect Squares

题目： Given a positive integer n, find the least number of perfect square numbers (for example, 1,...

2015-11-28 19:38
1454
• #### 【LeetCode从零单刷】Different Ways to Add Parentheses

题目： Given a string of numbers and operators, return all possible results from computing all the dif...

2015-11-15 22:20
632
• #### 【LeetCode从零单刷】Intersection of Two Linked Lists

题目： Write a program to find the node at which the intersection of two singly linked lists begins. ...

2015-11-13 17:54
1156
• #### 【LeetCode从零单刷】Factorial Trailing Zeroes

题目： Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should b...

2015-11-05 19:07
597
• #### 【LeetCode从零单刷】Longest Increasing Subsequence

题目： Given an unsorted array of integers, find the length of longest increasing subsequence. For ...

2015-11-05 16:45
2641
• #### 【LeetCode从零单刷】Longest Consecutive Sequence

题目： Given an unsorted array of integers, find the length of the longest consecutive elements sequ...

2015-11-04 10:07
1148
• #### 【LeetCode从零单刷】Search in Rotated Sorted Array I & II

I 题目： Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 ...

2015-11-02 23:18
1225
• #### 【LeetCode从零单刷】Game of Life

题目： According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellu...

2015-11-02 21:53
941
• #### 【LeetCode从零单刷】Remove Duplicates from Sorted Array I & II

I 题目： Given a sorted array, remove the duplicates in place such that each element appear onlyonce a...

2015-11-02 21:29
1187
• #### 【LeetCode从零单刷】House Robber

题目： You are a professional robber planning to rob houses along a street. Each house has a certain a...

2015-11-02 21:03
1359
• #### 【LeetCode从零单刷】Binary Tree Level Order Traversal I & II

题目： Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to ...

2015-11-01 10:53
565
• #### 【LeetCode从零单刷】H-index I & II

题目： Given an array of citations (each citation is a non-negative integer) of a researcher, writ...

2015-11-01 10:25
648
• #### 【LeetCode从零单刷】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. ...

2015-11-01 09:38
1288
• #### 【LeetCode从零单刷】Combinations & Combination Sum 系列

题目： Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For...

2015-10-31 22:35
2114