A record for coding practice on leetcode. Notation '*' means appearing the second time.
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
978. Longest Turbulent Subarray | longest-turbulent-subarray | Medium | |
55. Jump Game | jump-game | jump-game | Medium |
(segment tree)53. Maximum Subarray | maximum-subarray | maximum-subarray | Easy |
645. Set Mismatch | set-mismatch | Easy |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
54. Spiral Matrix | spiral-matrix | Medium | |
1275. Find Winner on a Tic Tac Toe Game | find-winner-on-a-tic-tac-toe-game | Easy | |
1041. Robot Bounded In Circle | robot-bounded-in-circle | Medium | |
59. Spiral Matrix II | spiral-matrix-ii | Medium | |
622. Design Circular Queue | design-circular-queue | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
43. Multiply Strings | multiply-strings | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
461. Hamming Distance | hamming-distance | Easy | |
67. Add Binary | add-binary | Easy | |
136. Single Number | single-number | Easy | |
338. Counting Bits | counting-bits | Easy | |
318. Maximum Product of Word Lengths | maximum-product-of-word-lengths | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
986. Interval List Intersections | interval-list-intersections | Medium | |
56. Merge Intervals | merge-intervals | Medium | |
352. Data Stream as Disjoint Intervals | data-stream-as-disjoint-intervals | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
304. Range Sum Query 2D - Immutable | range-sum-query-2d-immutable | Medium | |
1695. Maximum Erasure Value | maximum-erasure-value | Medium | |
(kadane)363. Max Sum of Rectangle No Larger Than K | max-sum-of-rectangle-no-larger-than-k | Hard |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
208. Implement Trie (Prefix Tree) | implement-trie-prefix-tree | implement-trie-prefix-tree | Medium |
212. Word Search II | word-search-ii | word-search-ii | Hard |
1178. Number of Valid Words for Each Puzzle | number-of-valid-words-for-each-puzzle | Hard | |
1032. Stream of Characters | stream-of-characters | Hard | |
(trie of c++ version)211. Design Add and Search Words Data Structure | design-add-and-search-words-data-structure | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
210. Course Schedule II | course-schedule-ii | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
(Dijkstra or any other)882. Reachable Nodes In Subdivided Graph | reachable-nodes-in-subdivided-graph | Hard | |
(Dijkstra)743. Network Delay Time | network-delay-time | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
1584. Min Cost to Connect All Points | min-cost-to-connect-all-points | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
785. Is Graph Bipartite? | is-graph-bipartite | Medium | |
886. Possible Bipartition | possible-bipartition | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
5. Longest Palindromic Substring | longest-palindromic-substring | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
902. Numbers At Most N Given Digit Set | numbers-at-most-n-given-digit-set | Hard | |
1291. Sequential Digits | sequential-digits | Medium |
leetcode题目 | Python代码 | C++代码 | 难度 |
---|---|---|---|
(Tarjan)1192. Critical Connections in a Network | critical-connections-in-a-network | Hard |