😃 用来记录一下自己刷题的过程
碰到不会的题目可能会跳着刷,列一下已完成的列表
1.
Two Sum
3.
Longest Substring Without Repeating Characters
4.
Median of Two Sorted Arrays
5.
Longest Palindromic Substring
10.
Regular Expression Matching
12.
Integer to Roman
13.
Roman to Integer
15.
3Sum
16.
3Sum Closest
17.
Letter Combinations of a Phone Number
18.
4Sum
19.
Remove Nth Node From End of List
26.
Remove Duplicates from Sorted Array
27.
Remove Element
30.
Substring with Concatenation of All Words
31.
Next Permutation
33.
Search in Rotated Sorted Array
34.
Find First and Last Position of Element in Sorted Array
36.
Valid Sudoku
37.
Sudoku Solver
38.
Count and Say
39.
Combination Sum
43.
Multiply Strings
45.
Jump Game II
46.
Permutations
47.
Permutations II
48.
Rotate Image
49.
Group Anagrams
50.
Pow(x, n)
51.
N-Queens
52.
N-Queens II
53.
Maximum Subarray
54.
Spiral Matrix
55.
Jump Game
56.
Merge Intervals
57.
Insert Interval
59.
Spiral Matrix II
61.
Rotate List
62.
Unique Paths
63.
Unique Paths II
64.
Minimum Path Sum
65.
Vaild Number
66.
Plus One
67.
Add Binary
69.
Sqrt(X)
70.
Climbing Stairs
71.
Simplify Path
75.
Sort Colors
77.
Combinations
78.
Subsets
79.
Word Search
80.
Remove Duplicates from Sorted Array II
81.
Search in Rotated Sorted Array II
82.
Remove Duplicates from Sorted List II
83.
Remove Duplicates from Sorted List
84.
Largest Rectangle in Histogram
86.
Parition List
90.
Subsets II
91.
Decode Ways
94.
Binary Tree Inorder Traversal
95.
Unique Binary Search Trees II
96.
Unique Binary Search Trees
98.
Validate Binary Search Tree
99.
Recover Bianry Search Tree
100.
Same Tree
101.
Symmetric Tree
102.
Binary Tree Level Order Traversal
103.
Binary Tree Zigzag Level Order Traversal
104.
Maximum Depth of Binary Tree
105.
Construct Binary Tree from Preorder and Inorder Traversal
106.
Construct Binary Tree from Inorder and Postorder Traversal
107.
Binary Tree Level Order Traversal II
108.
Convert Sorted Array to Binary Search Tree
109.
Convert Sorted List to Binary Search Tree
110.
Balanced Binary Tree
111.
Minimum Depth of Binary Tree
112.
Path Sum
113.
Path Sum II
114.
Flatten Binary Tree to Linked List
116.
Populating Next Right Pointers in Each Node
117.
Populating Next Right Pointers in Each Node II
118.
Pascal's Triangle
119.
Pascal's Triangle II
120.
Triangle
121.
Best Time to Buy and Sell Stock
122.
Best Time to Buy and Sell Stock II
124.
Binary Tree Maximum Path Sum
125.
Valid Palindrome
126.
Word Ladder II
127.
Word Ladder
128.
Longest Consecutive Sequence
130.
Surrounded Regions
133.
Clone Graph
134.
Gas Station
135.
Candy
136.
Single Number
137.
Single Number II
138.
Copy List with Random Pointer
141.
Linked List Cyle
142.
Linked List Cycle II
143.
Reorder List
144.
Binary Tree Preorder Traversal
145.
Binary Tree Postorder Traversal
146.
LRU Cache
147.
Insertion Sort List
148.
Sort List
150.
Evaluate Reverse Polish Notation
151.
Reverse Words in a String
153.
Find Minimum in Rotated Sorted Array
154.
Find Minimum in Rotated Sorted Array II
155.
Min Stack
160.
Intersetion of Two Linked Lists
162.
Find Peak Element
164.
Maximum Gap
166.
Fraction to Recurring Decimal
167.
Two Sum II - Input array is sorted
169.
Majority Element
171.
Excel Sheet Column Number
172.
Factorial Trailing Zeroes
173.
Binary Search Tree Iterator
175.
Combine Two Tables
177.
NthHighestSalary
179.
Largest Number
189.
Rotate Array
190.
Reverse Bits
191.
Number of 1 Bits
198.
House Robber
199.
Binary Tree Right Side View
200.
Number of Islands
201.
Bitwise AND of Numbers Range
202.
Happy Number
203.
Remove Linked List Elements
204.
Count Primes
205.
Isomorphic Strings
206.
Reverse Linked List
207.
Course Schedule
208.
Implement Trie (Prefix Tree)
209.
Minimun Size Subarray Sum
210.
Course Schedule II
211.
AddandSearchSearchWrod-Datastructuredesign
212.
Word Search II
213.
House Robber II
215.
Kth Largest Element in an Array
216.
Combination Sum III
217.
Contains Duplicate
221.
Maximal Square
222.
Count Complete Tree Nodes
223.
Rectangle Area
224.
Basic Calculator
225.
Implement Stack using Queues
226.
Invert Binary Tree
227.
Basic Calculator II
228.
Summary Ranges
229.
Majority Element II
230.
Kth Smallest Element in a BST
231.
Power of Two
232.
Implement Queue using Stacks
233.
Number of Digit One
235.
Lowest Common Ancestor of a Binary Search Tree
236.
Lowest Common Ancestor of a Binary Tree
237.
Delete Node in a Linked List
238.
Product of Array Except Self
242.
Vaild Anagram
257.
Binary Tree Paths
258.
Add Digits
260.
Single Number III
263.
Ugly Number
264.
Ugly Number II
268.
Missing Number
274.
H-Index
275.
H-Index II
278.
First Bad Version
279.
Perfect Squares
283.
Move Zeroes
284.
Peek Iterator
287.
Find the Duplicate Number
289.
Game of Life
290.
Word Pattern
292.
Nim Game
295.
Find Median from Data Stream
297.
Serialize and Deserialize Binary Tree
299.
Bulls and Cows
300.
Longest Increasing Subsequence
303.
Range Sum Query - Immutable
304.
Range Sum Query 2D - Immutable
306.
Additive Number
307.
Range Sum Query - Mutable
309.
Best Time to Buy ans Sell Stock with Cooldown
310.
Minimum Height Trees
313.
Super Ugly Number
315.
Count of Smaller Number After Self
318.
Maximum Product of Word Lengths
319.
Bulb Switcher
322.
Coins Change
326.
Power of Three
328.
Odd Even Linked List
329.
Longest Increasing Path in a Matrix
330.
Patching Array
331.
Verify Preorder Serialization of a Binary Tree
334.
Increasing Triplet Subsequence
337.
House Robber III
338.
Counting Bits
341.
Flatten Nested List Iterator
342.
Power of Four
343.
Integer Break
344.
Reverse String
345.
Reverse Vowels of a String
349.
Intersection of Two Arrays
350.
Intersection of Two Arrays II
357.
Count Numbers with Unique Digits
367.
Valid Perfect Square
371.
Sum of Two Integers
372.
Super Pow
373.
Find K Pairs with Smallest Sums
374.
Guess Number Higher or Lower
376.
Wiggle Subsequence
377.
Combination Sum IV
380.
Insert Delete GetRandom O(1)
381.
Insert Delete GetRandom O(1) - Duplicates allowed
383.
Ransom Note
384.
Shuffle an Array
385.
Mini Parser
387.
First Unique Character in a String
389.
Find the Difference
390.
Elimination Game
391.
Perfect Rectangle
392.
Is Subsequence
393.
UTF-8 Validation
394.
Decode String
396.
Rotate Function
398.
Random Pick Index
400.
Nth Digit
402.
Remove K Digits
404.
Sum of Left Leaves
405.
Convert a Number to Hexadecimal
406.
Queue Reconstruction by Height
409.
Longest Palindrome
412.
Fizz Buzz
413.
Arithmetic Slices
414.
Third Maximum Number
415.
Add Strings
416.
Partition Equal Subset Sum
417.
Pacific Atlantic Water Flow
421.
Maximum XOR of Two Numbers in an Array
423.
Reconstruct Original Digits from English
424.
Longest Repeating Character Replacement
429.
N-ary Tree Level Order Traversal
430.
Flatten a Multilevel Doubly Linked List
434.
Number of Segments in a String
435.
Non-overlapping Intervals
436.
Find Right Interval
437.
Path Sum III
438.
Find All Anagrams in a String
441.
Arranging Coins
442.
Find All Duplicates in an Array
443.
String Compression
445.
Add Two Numbers II
447.
Number of Boomerangs
448.
Find All Numbers Disappeared in an Array
449.
Serialize and Deserialize BST
450.
Delete Node in a BST
451.
Sort Characters By Frequency
452.
Minimum Number of Arrows to Burst Balloons
453.
Minimum Moves to Equal Array Elements
454.
4Sum II
455.
Assign Cookies
456.
132 Pattern
459.
Repeated Substring Pattern
461.
Hamming Distance
462.
Minimum Moves to Equal Array Elements II
463.
Island Perimeter
464.
Can I Win
468.
Validate IP Address
470.
Implements Rand10() Using Rand7()
474.
Ones and Zeros
475.
Heaters
476.
Number Complement
478.
Generate Random Point in a Circle
485.
Max Consecutive Ones
494.
Target Sum
500.
Keyboard Row
501.
Find Mode in Binary Search Tree
504.
Base 7
507.
Perfect Number
508.
Most Frequent Subtree Sum
509.
Fibonacci Number
513.
Find Bottom Left Tree Value
518.
Coin Change 2
520.
Detect Capital
521.
Longest Uncommon Subsequence I
530.
Minimum Absolute Difference in BST
538.
Convert BST to Greater Tree
540.
Single Element in a Sorted Array
541.
Reverse String II
542.
01 Matrix
551.
Student Attendance Record I
554.
Brick Wall
557.
Reverse Words in a String III
559.
Maximum Depth of N-ary Tree
561.
Array Partition I
563.
Binary Tree Tilt
566.
Reshape the Matrix
575.
Distribute Candies
589.
N-ary Tree Preorder Traversal
590
. N-ary Tree Postorder Traversal
605.
Can Place Flowers
606.
Construct String from Binary Tree
623.
Add One Row to Tree
628.
Maximum Product of Three Numbers
637.
Average of Levels in Binary Tree
643.
Maximum Average Subarray I
645.
Set Mismatch
653.
Two Sum IV - Input is a BST
654.
Maximum Binary Tree
661.
Image Smoother
662.
Maximum Width of Binary Tree
665.
Non-decreasing Array
669.
Trim a Binary Search Tree
670.
Maximum Swap
671.
Second Minimum Node In a Binary Tree
674.
Longest Continuous Increasing Subsequence
682.
Baseball Game
690.
Employee Importance
693.
Binary Number with Alternating Bits
695.
Max Area of Island
700.
Search in a Binary Search Tree
701.
Insert into a Binary Search Tree
704.
Binary Search
705.
Design HashSet
706.
Design HashMap
707.
Design Linked List
709.
To Lower Case
717.
1-bit and 2-bit Characters
724.
Find Pivot Index
725.
Split Linked List in Parts
735.
Asteroid Collision
744.
Find Smallest Letter Greater Than Target
747.
Largest Number At Least Twice of Others
766.
Toeplitz Matrix
771.
Jewels and Stones
783.
Minimum Distance Between BST Nodes
814.
Binary Tree Pruning
821.
Shortest Distance to a Character
832.
Flipping an Image
852.
Peak Index in a Mountain Array
860.
Lemonade Change
867.
Transpose Matrix
872.
Leaf-Similar Trees
876.
Middle of the Linked List
896.
Monotonic Array
897.
Increasing Order Search Tree
905.
Sort Array By Parity
912.
Sort an Array
917.
Reverse Only Letters
925.
Long Pressed Name
938.
Range Sum of BST
941.
Valid Mountain Array
961.
N-Repeated Element in Size 2N Array
1002.
Find Common Characters
1009.
Complement of Base 10 Integer
1019.
Next Greater Node In Linked List
1022.
Sum of Root To Leaf Binary Numbers
1137.
N-th Tribonacci Number
1189.
Maximum Number of Balloons
1200.
Minimum Absolute Difference
1207.
Unique Number of Occurrences
1260.
Shift 2D Grid
1281.
Subtract the Product and Sum of Digits of an Integer
1287.
Element Appearing More Than 25% In Sorted Array
1290.
Convert Binary Number in a Linked List to Integer
1295.
Find Numbers with Even Number of Digits
1299.
Replace Elements with Greatest Element on Right Side
1305.
All Elements in Two Binary Search Trees
2018.11.29 updata
1. 修改了整个项目的编码集
一开始没注意今天用手机
AIDE
的git
进行pull
操作的时候,发现乱码了,才知道原来一直没有修改编码集,eclipse
默认的是GBK
,折腾了半天,最后找了一个编码转换器,才将工程里所有的class文件转换完毕,解决了乱码问题
2. 将工程目录的.class\.settings\.target等ignore的文件重新push
手机的
AIDE
从github
拉取到本地的时候不能运行,新建了一个项目进行对比,发现没了.class文件的时候不能自动生成,同时也缺少.classpath
配置文件,所以又将git
忽略的文件重新加入了进来,至此,手机上也可以直接进行调试代码并直接push
到github
了