Skip to content

LeetCode刷题记录,部分题目会做个PPT动画来方便理解加深记忆

Notifications You must be signed in to change notification settings

Mabciyptyl/LeetCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

😃 用来记录一下自己刷题的过程

碰到不会的题目可能会跳着刷,列一下已完成的列表

Navigation

Navigation
0 - 49
50 - 99
100 - 149
150 - 199
200 - 249
250 - 299
300 - 349
350 - 399
400 - 449
450 - 499
500 - 549
550 - 599
600 - 649
650 - 699
700 - 749
750 - 799
800 - 849
850 - 899
900 - 949
950 - 999
1000 - 1049
1050 - 1099
1100 - 1149
1150 - 1199
1200 - 1249

0-50

1. Two Sum

2. Add Two Numbers

3. Longest Substring Without Repeating Characters

4. Median of Two Sorted Arrays

5. Longest Palindromic Substring

6. ZigZag Conversion

7. Reverse Integer

8. String to Integer (atoi)

9. Palindrome Number

10. Regular Expression Matching

11. Container With Most Water

12. Integer to Roman

13. Roman to Integer

14. Longest Common Prefix

15. 3Sum

16. 3Sum Closest

17. Letter Combinations of a Phone Number

18. 4Sum

19. Remove Nth Node From End of List

20. Valid Parentheses

21. Merge Two Sorted Lists

22. Generate Parentheses

23. Merge k Sorted Lists

24. Swap Nodes in Pairs

25. Reverse Nodes in k-Group

26. Remove Duplicates from Sorted Array

27. Remove Element

28. Implement strStr()

29. Divide Two Integers

30. Substring with Concatenation of All Words

31. Next Permutation

32. Longest Valid Parentheses

33. Search in Rotated Sorted Array

34. Find First and Last Position of Element in Sorted Array

35. Search Insert Position

36. Valid Sudoku

37. Sudoku Solver

38. Count and Say

39. Combination Sum

40. Combination Sum II

41. First Missing Positive

42. Trapping Rain Water

接雨水

43. Multiply Strings

45. Jump Game II

46. Permutations

47. Permutations II

48. Rotate Image

49. Group Anagrams

50. Pow(x, n)

返回目录

51-100

51. N-Queens

52. N-Queens II

53. Maximum Subarray

54. Spiral Matrix

55. Jump Game

56. Merge Intervals

57. Insert Interval

58. Length of Last Word

59. Spiral Matrix II

60. Permutation Sequence

61. Rotate List

62. Unique Paths

63. Unique Paths II

64. Minimum Path Sum

65. Vaild Number

66. Plus One

67. Add Binary

68. Text Justilication

69. Sqrt(X)

70. Climbing Stairs

71. Simplify Path

73. Set Matrix Zeroes

74. Search a 2D Matrix

75. Sort Colors

76. Minimum Window Substring

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

85. Maximal Rectangle

最大矩形

86. Parition List

88. Merge Sorted Array

90. Subsets II

Subsets II

91. Decode Ways

Decode Ways

92. Reverse Linked Lsit II

93. Restore IP Address

94. Binary Tree Inorder Traversal

95. Unique Binary Search Trees II

Unique Binary Search Trees II

96. Unique Binary Search Trees

97. Interleaving String

98. Validate Binary Search Tree

99. Recover Bianry Search Tree

100. Same Tree

返回目录

100-149

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

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

129. Sum Root to Leaf Numbers

130. Surrounded Regions

133. Clone Graph

134. Gas Station

135. Candy

136. Single Number

137. Single Number II

138. Copy List with Random Pointer

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-199

150. Evaluate Reverse Polish Notation

151. Reverse Words in a String

152. Maximum Product Subarray

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

165. Compare Version Numbers

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

176. Second Highest Salary

177. NthHighestSalary

179. Largest Number

187. Repeated DNA Sequences

189. Rotate Array

190. Reverse Bits

191. Number of 1 Bits

198. House Robber

199. Binary Tree Right Side View

200. Number of Islands

返回目录

200-249

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

219. Contains Duplicate II

220. Contains Duplicate III

221. Maximal Square

222. Count Complete Tree Nodes

223. Rectangle Area

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

234. Palindrome Linked List

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

239. Sliding Window Maximum

240. Search a 2D Matrix II

242. Vaild Anagram

返回目录

250-299

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-349

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

316. Remove Duplicate Letters

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

332. Reconstruct Itinerary

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

347. Top K Frequent Elements

349. Intersection of Two Arrays

返回目录

350-399

350. Intersection of Two Arrays II

354. Russian Doll Envelopes

357. Count Numbers with Unique Digits

365. Water and Jug Problem

367. Valid Perfect Square

368. Largest Divisible Subset

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

382. Linked List Random Node

383. Ransom Note

384. Shuffle an Array

385. Mini Parser

386. Lexicographical Numbers

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-449

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

410. Split Array Largest Sum

412. Fizz Buzz

413. Arithmetic Slices

414. Third Maximum Number

415. Add Strings

416. Partition Equal Subset Sum

417. Pacific Atlantic Water Flow

419. Battleships in a Board

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

432. All O`one Data Structure

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-499

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

477. Total Hamming Distance

478. Generate Random Point in a Circle

482. License Key Formatting

485. Max Consecutive Ones

494. Target Sum

496. Next Greater Element I

返回目录

500-549

500. Keyboard Row

501. Find Mode in Binary Search Tree

503. Next Greater Element II

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

532. K-diff Pairs in an Array

538. Convert BST to Greater Tree

540. Single Element in a Sorted Array

541. Reverse String II

542. 01 Matrix

543. Diameter of Binary Tree

返回目录

550-599

551. Student Attendance Record I

554. Brick Wall

556. Next Greater Element III

557. Reverse Words in a String III

558. Quad Tree Intersection

559. Maximum Depth of N-ary Tree

560. Subarray Sum Equals K

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

返回目录

600-649

605. Can Place Flowers

606. Construct String from Binary Tree

617. Merge Two Binary Trees

622. Design Circular Queue

623. Add One Row to Tree

628. Maximum Product of Three Numbers

633. Sum of Square Numbers

637. Average of Levels in Binary Tree

641. Design Circular Deque

643. Maximum Average Subarray I

645. Set Mismatch

返回目录

650-699

653. Two Sum IV - Input is a BST

654. Maximum Binary Tree

657. Robot Return to Origin

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-749

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

728. Self Dividing Numbers

735. Asteroid Collision

744. Find Smallest Letter Greater Than Target

747. Largest Number At Least Twice of Others

返回目录

750-799

766. Toeplitz Matrix

771. Jewels and Stones

783. Minimum Distance Between BST Nodes

返回目录

800-849

814. Binary Tree Pruning

821. Shortest Distance to a Character

832. Flipping an Image

844. Backspace String Compare

返回目录

850-899

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

返回目录

900-949

905. Sort Array By Parity

907. Sum of Subarray Minimums

912. Sort an Array

917. Reverse Only Letters

925. Long Pressed Name

938. Range Sum of BST

941. Valid Mountain Array

返回目录

950-999

961. N-Repeated Element in Size 2N Array

965. Univalued Binary Tree

返回目录

1000-1049

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

返回目录

1050-1099

返回目录

1100-1149

1137. N-th Tribonacci Number

返回目录

1150-1199

1189. Maximum Number of Balloons

返回目录

1200-1249

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. 修改了整个项目的编码集

一开始没注意今天用手机AIDEgit进行pull操作的时候,发现乱码了,才知道原来一直没有修改编码集,eclipse默认的是GBK,折腾了半天,最后找了一个编码转换器,才将工程里所有的class文件转换完毕,解决了乱码问题

    2. 将工程目录的.class\.settings\.target等ignore的文件重新push

手机的AIDEgithub拉取到本地的时候不能运行,新建了一个项目进行对比,发现没了.class文件的时候不能自动生成,同时也缺少.classpath配置文件,所以又将git忽略的文件重新加入了进来,至此,手机上也可以直接进行调试代码并直接pushgithub

About

LeetCode刷题记录,部分题目会做个PPT动画来方便理解加深记忆

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%