Leetcode Solutions in Java and Python3
- LC 516 Longest Palindrome Subsequence | Java
- LC 1024 Video Stitching | Java
- LC 678 Valid Parenthesis String | Java
- LC 471 Encode String with Shortest Length | Java
- LC 1000 Minimum Cost to Merge Stones | Java
- LC 132 Palindrome Partitioning II | Java | 解题报告
- LC 91 Decode Ways | Java
- LC 639 Decode Ways II | Java
- LC 1043 Partition Array for Maximum Sum | Java
- LC 689 Maximum Sum of 3 Non-Overlapping Subarrays | Java
- LC 64 Minimum Path Sum | Java
- LC 174 Dungeon Game | Java
- LC 576 Out of Boundary Paths | Java
- LC 688 Knight Probability in Chessboard | Java
- LC 935 Knight Dialer | Java
- LC 568 Maximum Vacation Days | Java
- LC 552 Student Attendance Record II | Java
- LC 377 Combination Sum IV | Java
- LC 518 Coin Change 2 | Java
- LC 416 Partition Equal Subset Sum | Java
- LC 276 Paint Fence | Java
- LC 920 Number of Music Playlists | Java | Python
- LC 1025 Divisor Game | Java | Python
- LC 139 Word Break | Java | Python
- LC 1057 Campus Bikes | Java
- LC 926 Flip String to Monotone Increasing | Java | Python
- LC 801 Minimum Swaps To Make Sequences Increasing | Java
- LC 1155. Number of Dice Rolls With Target Sum | Java
- LC 53 Maximum Sum Subarray | Java | 解题中文 | 解题英文 🆕
- LC 474 Zeros and Ones | Java | 解题中文| Solution Analysis English 🆕
- LC 1143 Longest Common Subsequence | Java 🆕
- LC 1167 Minimum Cost to Connect Sticks | Java 🆕
- LC 1062 Longest Repeating Substring | Java | Python
- LC 792 Number of Matching Subsequences | Java | Python | 解题报告
- LC 8 String to Integer (atoi) | Java | Python
- LC 459 Repeated Substring Pattern | Java
- LC 422 Valid Word Square | Java
- LC 408 Valid Word Abbreviation | Java
- LC 1065 Index Pairs of a String | Java
- LC 1108 Defanging an IP Address | Java
- LC 1119 Remove Vowels from a String | Java | Python
- LC 1163 Last Substring in Lexicographical Order | Java 🆕
- LC 1147 Longest Chunked Palindrome Decomposition | Java | 解题中文 🆕
- LC 1177. Can Make Palindrome from Substring | Java | 解题中文 | English Solution Analisis
- LC 1066 Campus Bikes II | Java | Python
- LC 5087 Letter Tile Possibilities | Java
- LC 465 Optimal Account Balancing | Java | 解题报告
- LC 1091 Shortest Path in Binary Matrix | Java
- LC 140 Word Break II | Java
- LC 79 Word Search | Java | 解题
- LC 212 Word Search II | Java
- LC 425 Word Squares | Java
- LC 130 Surrounded Regions | Java
- LC 1129 Shortest Path with Alternating Colors | Java
- LC 1161 Maximum Level Sum of a Binary Tree | Java
- LC 1162 As Far from Land as Possible | Java
- *LC 863 All nodes distance k in Binary Tree | Python
- LC 29 Divide Two Integers | Java | Python
- LC 1104 Path In Zigzag Labelled Binary Tree | Java
- LC 374 Guess Number Higher or Lower | Java
- LC 4 Median of Two Sorted Arrays | Java | 解题
- LC 31 Next Permutation | Java | Python
- LC 1089 Duplicate Zeros | Java
- LC 1086 High Five | Java
- 1103 Distribute Candies to People | Java
- LC 1109 Corporate Flight Bookings | Java
- LC 1122 Relative Sort Array | Java
- LC 334 Increasing Triplet Subsequence | Java
- LC 215 Kth Largest Element in an Array | Java
- LC 1151 Minimum Swaps to Group All 1's Together | Java
- LC 1157 Online Majority Element In Subarray | Java 🆕
- LC 30 Substring with Concatenation of All Words | Java | Python | 解题报告
- LC 828 Unique Letter String | Java
- LC 1040 Moving Stones Until Consecutive II | Java
- LC 1156 Swap For Longest Repeated Character Substring | Java
- LC 426 Convert Binary Search Tree to Sorted Doubly Linked List | Java
- LC 545 Boundary of Binary Tree | Java
- LC 94 Binary Tree Inorder Traversal | Java
- LC 144 Binary Tree Preorder Traversal | Java
- LC 145 Binary Tree Postorder Traversal | Java
- LC 102 Binary Tree Level Order Traversal | Java
- LC 1120 Maximum Average Subtree | Java
- LC 1123 Lowest Common Ancestor of Deepest Leaves | Java
- LC 745 Prefix and Suffix Search | Java
- LC 1061 Lexicographically Smallest Equivalent String | Java
- LC 1168 Optimize Water Distribution In a Village | Java | 解题中文 | Solution Analysis English version 🆕
- LC 369 Plus One Linked List | Java | Python
- LC 25 Reverse Nodes in K Group | Java | | 解题中文 | Solution Analysis English version 🆕
- LC 1114 Print in Order | Java
- LC 1115 Print FooBar Alternately | Java
- LC 1116 Print Zero Even Odd | Java
- LC 1128 Number of Equivalent Domino Pairs | Java
- LC 460 LFU Cache | Java | 详解
- LC 1160 Find Words That Can Be Formed by Characters | Java 🆕
- LC 1146 Snapshot Array | Java 🆕
- LC 1165 Single-Row Keyboard | Java 🆕
- LC 1166 Design File System | Java 🆕
- LC 1171 Remove Zero Sum Consecutive Nodes from Linked List | Java | 中文解题 | English Solution Analysis 🆕
- LC 1178 Number of Valid Words for Each Puzzle | Java 🆕
- Max Chunked Palindrome | Java | 详解
- Min Days to Bloom | Java
- Recommend Friend | Java | 详解
- Add and Multiply to Collection | Java
- Compare Expression Trees | Java
- Coke Machine | Java
- Customer List Set All O(1) | Java
- Number of Valid Strings | Java
- Min Steps to Remove Elements | Java
- Exception handling in Lambda Function
- Function Exception handling
- Concurrent
- Two Threads print A and B alternatively with Semaphore
- Two Threads print A and B alternatively with ReentrantLock and Condition
- Three Threads print zero, odd and even number alternatively with Semaphore
- Three Threads print zero, odd and even number alternatively with ReentrantLock and Condition