Code Monkey home page Code Monkey logo

leetcode's Introduction

Leetcode

双指针

167. Two Sum II - Input array is sorted (Easy)

633. Sum of Square Numbers (Easy)

345. Reverse Vowels of a String (Easy)

680. Valid Palindrome II (Easy)

88. Merge Sorted Array (Easy)

141. Linked List Cycle (Easy)

524. Longest Word in Dictionary through Deleting (Medium)

排序

215. Kth Largest Element in an Array (Medium)

347. Top K Frequent Elements (Medium)

451. Sort Characters By Frequency (Medium)

75. Sort Colors (Medium)

贪心**

455. Assign Cookies (Easy)

435. Non-overlapping Intervals (Medium)

452. Minimum Number of Arrows to Burst Balloons (Medium)

406. Queue Reconstruction by Height(Medium)

763. Partition Labels (Medium)

605. Can Place Flowers (Easy)

392. Is Subsequence (Medium)

665. Non-decreasing Array (Easy)

122. Best Time to Buy and Sell Stock II (Easy)

53. Maximum Subarray (Easy)

121. Best Time to Buy and Sell Stock (Easy)

二分查找

69. Sqrt(x) (Easy)

744. Find Smallest Letter Greater Than Target (Easy)

540. Single Element in a Sorted Array (Medium)

278. First Bad Version (Easy)

153. Find Minimum in Rotated Sorted Array (Medium)

34. Search for a Range (Medium)

分治

241. Different Ways to Add Parentheses (Medium)

搜索

BFS

279. Perfect Squares (Medium)

127. Word Ladder (Medium)

DFS

695. Max Area of Island (Easy)

200. Number of Islands (Medium)

547. Friend Circles (Medium)

130. Surrounded Regions (Medium)

417. Pacific Atlantic Water Flow (Medium)

Backtracking

17. Letter Combinations of a Phone Number (Medium)

93. Restore IP Addresses(Medium)

79. Word Search (Medium)

257. Binary Tree Paths (Easy)

46. Permutations (Medium)

47. Permutations II (Medium)

77. Combinations (Medium)

39. Combination Sum (Medium)

40. Combination Sum II (Medium)

216. Combination Sum III (Medium)

78. Subsets (Medium)

90. Subsets II (Medium)

131. Palindrome Partitioning (Medium)

37. Sudoku Solver (Hard)

51. N-Queens (Hard)

动态规划

斐波那契数列

70. Climbing Stairs (Easy)

198. House Robber (Easy)

213. House Robber II (Medium)

矩阵路径

64. Minimum Path Sum (Medium)

62. Unique Paths (Medium)

数组区间

303. Range Sum Query - Immutable (Easy)

413. Arithmetic Slices (Medium)

分割整数

343. Integer Break (Medim)

279. Perfect Squares(Medium)

91. Decode Ways (Medium)

最长递增子序列

300. Longest Increasing Subsequence (Medium)

646. Maximum Length of Pair Chain (Medium)

376. Wiggle Subsequence (Medium)

最长公共子序列

0-1 背包

416. Partition Equal Subset Sum (Medium)

494. Target Sum (Medium)

139. Word Break (Medium)

474. Ones and Zeroes (Medium)

322. Coin Change (Medium)

377. Combination Sum IV (Medium)

股票交易

309. Best Time to Buy and Sell Stock with Cooldown(Medium)

714. Best Time to Buy and Sell Stock with Transaction Fee (Medium)

123. Best Time to Buy and Sell Stock III (Hard)

188. Best Time to Buy and Sell Stock IV (Hard)

字符串编辑

583. Delete Operation for Two Strings (Medium)

72. Edit Distance (Hard)

650. 2 Keys Keyboard (Medium)

数学

素数

204. Count Primes (Easy)

进制转换

504. Base 7 (Easy)

405. Convert a Number to Hexadecimal (Easy)

168. Excel Sheet Column Title (Easy)

阶乘

172. Factorial Trailing Zeroes (Easy)

字符串加法减法

67. Add Binary (Easy)

415. Add Strings (Easy)

相遇问题

462. Minimum Moves to Equal Array Elements II (Medium)

多数投票问题

169. Majority Element (Easy)

其它

367. Valid Perfect Square (Easy)

326. Power of Three (Easy)

238. Product of Array Except Self (Medium)

628. Maximum Product of Three Numbers (Easy)

数据结构相关

链表

160. Intersection of Two Linked Lists (Easy)

206. Reverse Linked List (Easy)

21. Merge Two Sorted Lists (Easy)

83. Remove Duplicates from Sorted List (Easy)

19. Remove Nth Node From End of List (Medium)

24. Swap Nodes in Pairs (Medium)

445. Add Two Numbers II (Medium)

234. Palindrome Linked List (Easy)

725. Split Linked List in Parts(Medium)

328. Odd Even Linked List (Medium)

递归

104. Maximum Depth of Binary Tree (Easy)

110. Balanced Binary Tree (Easy)

543. Diameter of Binary Tree (Easy)

226. Invert Binary Tree (Easy)

617. Merge Two Binary Trees (Easy)

Leetcdoe : 112. Path Sum (Easy)

437. Path Sum III (Easy)

572. Subtree of Another Tree (Easy)

101. Symmetric Tree (Easy)

111. Minimum Depth of Binary Tree (Easy)

404. Sum of Left Leaves (Easy)

687. Longest Univalue Path (Easy)

337. House Robber III (Medium)

671. Second Minimum Node In a Binary Tree (Easy)

层次遍历

637. Average of Levels in Binary Tree (Easy)

513. Find Bottom Left Tree Value (Easy)

前中后序遍历

144. Binary Tree Preorder Traversal (Medium)

145. Binary Tree Postorder Traversal (Medium)

94. Binary Tree Inorder Traversal (Medium)

BST

669. Trim a Binary Search Tree (Easy)

230. Kth Smallest Element in a BST (Medium)

Convert BST to Greater Tree (Easy)

235. Lowest Common Ancestor of a Binary Search Tree (Easy)

236. Lowest Common Ancestor of a Binary Tree (Medium)

108. Convert Sorted Array to Binary Search Tree (Easy)

109. Convert Sorted List to Binary Search Tree (Medium)

653. Two Sum IV - Input is a BST (Easy)

530. Minimum Absolute Difference in BST (Easy)

501. Find Mode in Binary Search Tree (Easy)

Trie

208. Implement Trie (Prefix Tree) (Medium)

677. Map Sum Pairs (Medium)

栈和队列

232. Implement Queue using Stacks (Easy)

225. Implement Stack using Queues (Easy)

155. Min Stack (Easy)

20. Valid Parentheses (Easy)

739. Daily Temperatures (Medium)

503. Next Greater Element II (Medium)

哈希表

1. Two Sum (Easy)

217. Contains Duplicate (Easy)

594. Longest Harmonious Subsequence (Easy)

128. Longest Consecutive Sequence (Hard)

字符串

242. Valid Anagram (Easy)

409. Longest Palindrome (Easy)

205. Isomorphic Strings (Easy)

647. Palindromic Substrings (Medium)

9. Palindrome Number (Easy)

696. Count Binary Substrings (Easy)

数组与矩阵

283. Move Zeroes (Easy)

566. Reshape the Matrix (Easy)

485. Max Consecutive Ones (Easy)

240. Search a 2D Matrix II (Medium)

378. Kth Smallest Element in a Sorted Matrix ((Medium))

645. Set Mismatch (Easy)

287. Find the Duplicate Number (Medium)

667. Beautiful Arrangement II (Medium)

697. Degree of an Array (Easy)

766. Toeplitz Matrix (Easy)

565. Array Nesting (Medium)

769. Max Chunks To Make Sorted (Medium)

二分图

785. Is Graph Bipartite? (Medium)

拓扑排序

207. Course Schedule (Medium)

210. Course Schedule II (Medium)

并查集

684. Redundant Connection (Medium)

位运算

461. Hamming Distance (Easy)

136. Single Number (Easy)

268. Missing Number (Easy)

260. Single Number III (Medium)

190. Reverse Bits (Easy)

231. Power of Two (Easy)

342. Power of Four (Easy)

693. Binary Number with Alternating Bits (Easy)

476. Number Complement (Easy)

371. Sum of Two Integers (Easy)

318. Maximum Product of Word Lengths (Medium)

338. Counting Bits (Medium)

leetcode's People

Contributors

zjujefflai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.