### LeetCode解题报告

11 已关注
146篇博文
• #### <LeetCode OJ> 389. Find the Difference

Given two strings s and t which consist of only lowercase letters. String t is generated by random ...

2016-08-31 19:54
1059
• #### <LeetCode OJ> 75. Sort Color

题目翻译： 给定一个具有N个元素的数组，且数组只存在三种值0,1,2，分别代表红色，白色或蓝色。现在对其排序，使得相同颜色的物体是相邻的，要求顺序为红、白、蓝。 提醒 你是不是想利用图书馆的排序解...

2016-01-15 22:02
896
• #### <LeetCode OJ> 382. Linked List Random Node

Given a singly linked list, return a random node's value from the linked list. Each node must have t...

2016-08-11 23:58
1417
• #### <LeetCode OJ> 387. First Unique Character in a String

Total Accepted: 4516 Total Submissions: 10603 Difficulty: Easy Given a string, find the first...

2016-08-24 21:43
1387
• #### <LeetCode OJ> 383. Ransom Note

Given  an  arbitrary  ransom  note  string  and  another  string  containing  letters from  all  the...

2016-08-11 23:36
2064
• #### <LeetCode OJ> 374. Guess Number Higher or Lower

We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to gue...

2016-07-14 21:16
2108
• #### <LeetCode OJ> 371. Sum of Two Integers

Total Accepted: 3722 Total Submissions: 6898 Difficulty: Easy Calculate the sum of two integers...

2016-07-02 18:25
1400
• #### <LeetCode OJ> 241. Different Ways to Add Parentheses

Total Accepted: 23674 Total Submissions: 65569 Difficulty: Medium Given a string of numbers and...

2016-06-16 09:16
1663
• #### <LeetCode OJ> 334. Increasing Triplet Subsequence

Total Accepted: 16003 Total Submissions: 46481 Difficulty: Medium Given an unsorted array retur...

2016-06-14 20:20
757
• #### DNS，DHCP，网关相关知识点

经常用windows，只要插上网线就自动能上网了。但是当网络出问题了确不知道怎么解决。所以我来科普下关于网络的基础知识。首先打开网络的状态我们会发现几个参数 1.IP与MAC 我们...

2016-06-13 22:32
1739
• #### <LeetCode OJ> 318. Maximum Product of Word Lengths

Total Accepted: 23617 Total Submissions: 58995 Difficulty: Medium Given a string array words, f...

2016-06-13 20:31
1899
• #### <LeetCode OJ> 173. Binary Search Tree Iterator

Total Accepted: 50775 Total Submissions: 144066 Difficulty: Medium Implement an iterator over a...

2016-06-13 19:35
794
• #### <LeetCode OJ> 357. Count Numbers with Unique Digits

Total Accepted: 450 Total Submissions: 1077 Difficulty: Medium Given a non-negative integer n, ...

2016-06-13 17:26
1135
• #### <LeetCode OJ> 60. Permutation Sequence

Total Accepted: 56468 Total Submissions: 221337 Difficulty: Medium The set [1,2,3,…,n] contains...

2016-06-12 22:57
1039
• #### <LeetCode OJ> 114. Flatten Binary Tree to Linked List

Total Accepted: 84864 Total Submissions: 270352 Difficulty: Medium Given a binary tree, flatten...

2016-06-12 17:57
940
• #### <LeetCode OJ> 201. Bitwise AND of Numbers Range

Total Accepted: 35859 Total Submissions: 115817 Difficulty: Medium Given a range [m, n] where 0...

2016-06-12 11:06
764
• #### <LeetCode OJ> 200 / 130 Number of Islands / Surrounded Regions

Total Accepted: 48411 Total Submissions: 171609 Difficulty: Medium Given a 2d grid map of '1's ...

2016-06-11 16:36
1084
• #### <LeetCode OJ> 48. Rotate Image

Total Accepted: 69879 Total Submissions: 199786 Difficulty: Medium You are given an n x n 2D ma...

2016-06-05 16:27
1871
• #### <LeetCode OJ> 54 / 59 Spiral Matrix( I / II )

Total Accepted: 61182 Total Submissions: 268396 Difficulty: Medium Given a matrix of m x n elem...

2016-06-04 18:05
873
• #### <LeetCode OJ> 106. Construct Binary Tree from Inorder and Postorder Traversal

Total Accepted: 56569 Total Submissions: 193357 Difficulty: Medium Given inorder and postorder ...

2016-06-03 22:43
785