Play Leetcode with different programming language
LeetCode ========
| # | Title | c | c++ | python | go | js | java | rust | Difficulty | |---| ----- | -------- | ---------- | ---------- | ---------- | ---------- | ---------- | ---------- | ---------- | |0001|Two Sum | c | c++ |python|go|js|java||Easy| |0002|Add Two Numbers | c | c++ |python|go||||Medium| |0003|Longest Substring Without Repeating Characters || c++ |python|go||||Medium| |0004|Median of Two Sorted Arrays || c++ |python|||||Hard| |0005|Longest Palindromic Substring || c++ |python|go||||Medium| |0006|ZigZag Conversion || c++ |python|go||||Medium| |0007|Reverse Integer || c++ |python|go||||Easy| |0008|String to Integer (atoi) || c++/0008.cpp) |python/0008.py)|go/0008.go)||||Medium| |0009|Palindrome Number || c++ |python|go|js|||Easy| |0010|Regular Expression Matching || c++ |python|go||||Hard| |0011|Container With Most Water || c++|python|go||||Medium| |0012|Integer to Roman || c++ |python|go||||Medium| |0013|Roman to Integer || c++ |python|go|js|java||Easy| |0014|Longest Common Prefix || c++ |python|go||||Easy| |0015|3Sum || c++ |python|go||||Medium| |0016|3Sum Closest || c++ |python|||||Medium| |0017|Letter Combinations of a Phone Number || c++ |python|||||Medium| |0018|4Sum || c++ |python|||||Medium| |0019|Remove Nth Node From End of List || c++ |python|||||Medium| |0020|Valid Parentheses || c++ |python|go||java||Easy| |0021|Merge Two Sorted Lists || c++ |python|||||Easy| |0022|Generate Parentheses || c++ |python|||||Medium| |0023|Merge k Sorted Lists || c++ |python|||||Hard| |0024|Swap Nodes in Pairs || c++ |python|||||Medium| |0025|Reverse Nodes in k-Group || c++ |python|||||Hard| |0026|Remove Duplicates from Sorted Array || c++ |python|go|js|||Easy| |0027|Remove Element || c++ |python|go||||Easy| |0028|Implement strStr() || c++/0028.cpp) |python/0028.py)|||||Easy| |0029|Divide Two Integers || c++ |python|||||Medium| |0030|Substring with Concatenation of All Words || c++ |python|||||Hard| |0031|Next Permutation || c++ |python|||||Medium| |0032|Longest Valid Parentheses || c++ |python|||||Hard| |0033|Search in Rotated Sorted Array || c++ |python|go||||Medium| |0034|Find First and Last Position of Element in Sorted Array || c++ |python|||||Medium| |0035|Search Insert Position || c++ |python|go||||Easy| |0036|Valid Sudoku || c++ |python|||||Medium| |0037|Sudoku Solver || c++ |python|||||Hard| |0038|Count and Say || c++ |python|||||Easy| |0039|Combination Sum || c++ |python|||||Medium| |0040|Combination Sum II || c++ |python|||||Medium| |0041|First Missing Positive || c++ |python|||||Hard| |0042|Trapping Rain Water || c++ |python|||||Hard| |0043|Multiply Strings || c++ |python|||||Medium| |0044|Wildcard Matching || c++ |python|||||Hard| |0045|Jump Game II || c++ |python|||||Hard| |0046|Permutations || c++ |python|||java||Medium| |0047|Permutations II || c++ |python|||java||Medium| |0048|Rotate Image || c++ |python|go||||Medium| |0049|Group Anagrams || c++ |python|go||||Medium| |0050|Pow(x, n) || c++/0050.cpp) |python/0050.py)|||||Medium| |0051|N-Queens || c++ |python|||||Hard| |0052|N-Queens II || c++ |python|||||Hard| |0053|Maximum Subarray || c++ |python|||||Easy| |0054|Spiral Matrix || c++ |python|||||Medium| |0055|Jump Game || c++ |python|go||||Medium| |0056|Merge Intervals || c++ |python|||||Medium| |0057|Insert Interval || c++ ||||||Medium| |0058|Length of Last Word || c++ |python||js|| rust|Easy| |0059|Spiral Matrix II || c++ |python|||||Hard| |0060|Permutation Sequence || c++ |python|||||Medium| |0061|Rotate List || c++ |python|||||Medium| |0062|Unique Paths || c++ |python|||||Medium| |0063|Unique Paths II || c++ |python|||||Medium| |0064|Minimum Path Sum || c++ |python|||||Medium| |0065|Valid Number || c++ |python|||||Hard| |0066|Plus One || c++ |python||||rust|Easy| |0067|Add Binary || c++ |python|||||Easy| |0068|Text Justification || c++ |python|||||Hard| |0069|Sqrt(x) || c++/0069.cpp) |python/0069.py)|go/0069.go)||||Easy| |0070|Climbing Stairs || c++ |python|go||||Easy| |0071|Simplify Path || c++ |python|||||Medium| |0072|Edit Distance || c++ |python|||||Hard| |0073|Set Matrix Zeroes || c++ |python|||||Medium| |0074|Search a 2D Matrix || c++ |python|||||Medium| |0075|Sort Colors || c++ |python|go||||Medium| |0076|Minimum Window Substring || c++ |python|||||Easy| |0077|Combinations || c++ |python|||||Medium| |0078|Subsets || c++ |python|||||Medium| |0079|Word Search || c++ |python|||||Medium| |0080|Remove Duplicates from Sorted Array II || [c++]() |python|||||Medium| |0081|Search in Rotated Sorted Array II || c++ |python|||||Medium| |0082|Remove Duplicates from Sorted List II || c++ |python|||||Medium| |0083|Remove Duplicates from Sorted List || c++ |python|||||Easy| |0084|Largest Rectangle in Histogram || c++ |python|||||Hard| |0085|Maximal Rectangle || c++ |python|||||Hard| |0086|Partition List || c++ |python|||||Medium| |0087|Scramble String || c++ |python|||||Hard| |0088|Merge Sorted Array || c++ |python|||||Easy| |0089|Gray Code || c++ |python|||||Medium| |0090|Subsets II || c++ |python|||||Medium| |0091|Decode Ways || c++ |python|||||Medium| |0092|Reverse Linked List II || c++ |python|||||Medium| |0093|Restore IP Addresses || c++ |python|||||Medium| |0094|Binary Tree Inorder Traversal || c++ |python|||||Medium| |0095|Unique Binary Search Trees II || c++ |python|||||Medium| |0096|Unique Binary Search Trees || c++ |python|||||Medium| |0097|Interleaving String || c++ |python|||||Medium| |0098|Validate Binary Search Tree || c++ |python|||||Medium| |0099|Recover Binary Search Tree || c++ |python|||||Hard| |0100|Same Tree || c++ |python|||||Easy| |0101|Symmetric Tree || c++ |python|||||Easy| |0102|Binary Tree Level Order Traversal || c++ |python|||||Medium| |0103|Binary Tree Zigzag Level Order Traversal || c++ |python|||||Medium| |0104|Maximum Depth of Binary Tree || c++ |python|||||Easy| |0105|Construct Binary Tree from Preorder and Inorder Traversal || c++ |python|||||Medium| |0106|Construct Binary Tree from Inorder and Postorder Traversal || c++ |python|||||Medium| |0107|Binary Tree Level Order Traversal II || c++ |python|||||Easy| |0108|Convert Sorted Array to Binary Search Tree || c++ |python|||||Easy| |0109|Convert Sorted List to Binary Search Tree || c++ |python|||||Medium| |0110|Balanced Binary Tree || c++ |python|||||Easy| |0111|Minimum Depth of Binary Tree || c++ |python|||||Easy| |0112|Path Sum || c++ |python|||||Easy| |0113|Path Sum II || c++ |python|||||Medium| |0114|Flatten Binary Tree to Linked List || c++ |python|||||Medium| |0115|Distinct Subsequences || c++ |python|||||Hard| |0116|Populating Next Right Pointers in Each Node || c++ |python|||||Medium| |0117|Populating Next Right Pointers in Each Node II || c++ |python|||||Medium| |0118|Pascal's Triangle || c++ |python|||||Easy| |0119|Pascal's Triangle II || c++ |python|||||Easy| |0120|Triangle || c++ |python|||||Medium| |0121|Best Time to Buy and Sell Stock || c++ |python|go||||Easy| |0122|Best Time to Buy and Sell Stock II || c++ |python|||||Easy| |0123|Best Time to Buy and Sell Stock III || c++ |python|||||Hard| |0124|Binary Tree Maximum Path Sum || c++ |python|||||Hard| |0125|Valid Palindrome || c++ |python|go||||Easy| |0126|Word Ladder II || c++ |python|||||Hard| |0127|Word Ladder || c++ |python|||||Medium| |0128|Longest Consecutive Sequence || c++ |python|go||||Hard| |0129|Sum Root to Leaf Numbers || c++ |python|||||Medium| |0130|Surrounded Regions || c++ |python|||||Medium| |0131|Palindrome Partitioning || c++ |python|||||Medium| |0132|Palindrome Partitioning II || c++ |python|||||Hard| |0133|Clone Graph || c++ |python|||||Medium| |0134|Gas Station || c++ |python|||||Medium| |0135|Candy || c++ |python|||||Hard| |0136|Single Number || c++ |python|go||||Easy| |0137|Single Number II || c++ |python|go||||Medium| |0138|Copy List with Random Pointer || c++ |python|||||Medium| |0139|Word Break || c++ |python|||||Medium| |0140|Word Break II || c++ |python|||||Hard| |0141|Linked List Cycle || c++ |python|||||Easy| |0142|Linked List Cycle II || c++ |python|||||Medium| |0143|Reorder-List || c++ |python|||||Medium| |0144|Binary Tree Preorder Traversal || c++ |python|||||Medium| |0145|Binary Tree Postorder Traversal || c++ |python|||||Hard| |0146|LRU Cache || c++ |python|||||Hard| |0147|Insertion Sort List || c++ |python|||||Medium| |0148|Sort List || c++ |python|||||Medium| |0149|Max Points on a Line || c++ |python|||||Hard| |0150|Evaluate Reverse Polish Notation || c++ |python|||||Medium| |0151|Reverse Words in a String || c++ |python|||||Medium| |0152|Maximum Product Subarray || c++ |python|go||||Medium| |0153|Find Minimum in Rotated Sorted Array || c++ |python|go||||Medium| |0154|Find Minimum in Rotated Sorted Array II || c++ |python|||||Hard| |0155|Min Stack || c++ |python|||||Easy| |0160|Intersection of Two Linked Lists || c++ |python|||||Easy| |0162|Find Peak Element || c++ |python|go|||rust|Medium| |0165|Compare Version Numbers || c++ |python|||||Medium| |0166|Fraction to Recurring Decimal || c++ |python|||||Medium| |0167|Two Sum II - Input array is sorted || c++ |python|||||Easy| |0168|Excel Sheet Column Title || c++ |python|||||Easy| |0169|Majority Element || c++ |python|go|||rust|Easy| |0171|Excel Sheet Column Number || c++ |python|||||Easy| |0172|Factorial Trailing Zeroes || c++ |python|||||Easy| |0173|Binary Search Tree Iterator || c++ |python|||||Medium| |0174|Dungeon Game || c++ |python|||||Hard| |0179|Largest Number || c++ |python|||||Medium| |0187|Repeated-DNA-Sequences || c++ |python|||||Medium| |0188|Best Time to Buy and Sell Stock IV || c++ |python|||||Hard| |0189|Rotate Array || c++ |python|||||Easy| |0190|Reverse Bits || c++ |python|go||||Easy| |0191|Number of 1 Bits || c++ |python|go||||Easy| |0198|House Robber || c++ |python|go||||Easy| |0199|Binary Tree Right Side View || c++ |python|||||Medium| |0200|Number of Islands || c++ |python|go|js|java||Medium| |0201|Bitwise AND of Numbers Range || c++ |python|||||Medium| |0202|Happy Number || c++ |python|||||Easy| |0203|Remove Linked List Elements || c++ |python|||||Easy| |0204|Count Primes || c++ |python|||||Easy| |0205|Isomorphic Strings || c++ |python|||||Easy| |0206|Reverse Linked List || c++ |python|go||||Easy| |0207|Course Schedule || c++ |python|go|js|||Medium| |0208|Implement Trie (Prefix Tree) || c++/0208.cpp) |python/0208.py)|||||Medium| |0209|Minimum Size Subarray Sum || c++ |python|||||Medium| |0210|Course Schedule II || c++ |python|go|js|||Medium| |0211|Add and Search Word - Data structure design || c++ |python||||rust|Medium| |0212|Word Search II || c++ |python|go|js|||Medium| |0213|House Robber II || c++ |python|||||Medium| |0215|Kth Largest Element in an Array || c++ |python|||||Medium| |0216|Combination Sum III || c++ |python|||||Medium| |0217|Contains Duplicate || c++ |python|go||||Easy| |0218|The Skyline Problem || c++ |python|go|js|||Hard| |0219|Contains Duplicate II || c++ |python|go||||Easy| |0221|Maximal Square || c++ |python|go|js|||Medium| |0222|Count Complete Tree Nodes || c++ |python|||||Medium| |0223|Rectangle Area || c++ |python|||||Medium| |0224|Basic Calculator || c++ |python|go|js|||Hard| |0226|Invert Binary Tree || c++ |python|||||Easy| |0228|Summary Ranges || c++ |python|||||Medium| |0229|Majority Element II || c++ |python||||rust|Medium| |0230|Kth Smallest Element in a BST || c++ |python|||||Medium| |0231|Power of Two || c++ |python|go||||Easy| |0234|Palindrome Linked List || c++ |python|||||Medium| |0235|Lowest Common Ancestor of a Binary Search Tree || c++ |python|||||Easy| |0236|Lowest Common Ancestor of a Binary Tree || c++ |python|||||Medium| |0237|Delete Node in a Linked List || c++ |python|||||Easy| |0238|Product of Array Except Self || c++ |python|go||||Medium| |0239|Sliding Window Maximum || c++ |python|||||Medium| |0240|Search a 2D Matrix II || c++ |python|||||Medium| |0241|Different Ways to Add Parentheses || c++ |python|||||Medium| |0242|Valid Anagram || c++ |python|go||||Easy| |0242|Binary Tree Paths || c++ |python|||||Easy| |0253|Meeting Rooms II || c++ |python|||||Medium| |0260|Single Number III || c++ |python|||java||Medium| |0263|Ugly Number || c++ |python|go||||Easy| |0264|Ugly Number II || c++ |python|||||Medium| |0268|Missing Number || c++ |python|go||||Easy| |0274|H-Index || c++ |python|go||||Medium| |0275|H-Index || c++ |python|go||||Medium| |0278|First Bad Version || c++ |python|go||||Easy| |0279|Perfect Squares || c++ |python|||||Medium| |0283|Move Zeroes || c++ |python|||||Easy| |0287|Find the Duplicate Number || c++ |python|||||Medium| |0289|Game of Life || c++ |python|||||Medium| |0290|Word Pattern || c++ |python|||||Easy| |0297|Serialize and Deserialize Binary Tree || c++ |python||js|||Hard| |0300|Longest Increasing Subsequence || c++ |python||||rust|Medium| |0303|Range Sum Query - Immutable || c++ |python|||||Easy| |0307|Range Sum Query - Mutable || c++ |python|go|js|||Medium| |0309|Best Time to Buy and Sell Stock with Cooldown || c++ |python|||||Medium| |0310|Insert Delete GetRandom O(1) || c++/0310.cpp) ||||||Medium| |0316|Remove Duplicate Letters || c++ |python|||||Hard| |0319|Bulb Switcher || c++ |python|go||||Medium| |0322|Coin-Change || c++ |python|go|js|java||Medium| |0325|Maximum Size Subarray Sum Equals k || c++ |python|||||Medium| |0326|Power of Three||c++||go|||rust|Easy| |0328|Odd Even Linked List || c++ |python|||||Medium| |0331|Verify Preorder Serialization of a Binary Tree || c++ |python|||||Medium| |0337|House Robber III || c++ |python|||||Medium| |0341|Flatten Nested List Iterator || c++ |python|||||Medium| |0343|Integer Break || c++ |python|||||Medium| |0344|Reverse String || c++ |python|go||||Easy| |0345|Reverse Vowels of a String || c++ |python|||||Easy| |0347|Top K Frequent Elements || c++ |python|go||||Medium| |0349|Intersection of Two Arrays || c++ |python|||||Easy| |0350|Intersection of Two Arrays II || c++ |python|||||Easy| |0352|Data Stream as Disjoint Intervals || c++ ||||||Hard| |0354|Russian Doll Envelopes || c++ |python|||||Hard| |0365|Water and Jug Problem||c++|python|go|js|java||Medium| |0371|Sum of Two Integers || c++ |python||||rust|Medium| |0377|Combination Sum IV || c++ |python|||||Medium| |0389|Find the Difference || c++ |python|||||Easy| |0384|Shuffle an Array || c++ |||||rust|Medium| |0392|Is Subsequence || c++ |python|||||Medium| |0401|Binary Watch || c++ |python|||||Easy| |0404|Sum of Left Leaves || c++ |python|||||Easy| |0409|Longest Palindrome||c++|python|go|js|java||Easy| |0416|Partition Equal Subset Sum || c++ |python|go|js|java||Medium| |0423|Reconstruct Original Digits from English || c++ |||||rust|Medium| |0424|Longest Repeating Character Replacement || c++ |python|go|js|||Medium| |0435|Non-overlapping Intervals || c++ |python|go||||Medium| |0437|Path Sum III || c++ |python|||||Easy| |0438|Find All Anagrams in a String || c++ |python||||rust|Medium| |0445|Add Two Numbers II || c++ |python|||||Medium| |0446|Arithmetic Slices II - Subsequence || c++ ||||||Hard| |0447|Number of Boomerangs || c++ |python||||rust|Medium| |0450|Delete Node in a BST || c++ |python|||||Medium| |0451|Sort Characters By Frequency || c++ |python|||||Easy| |0452|Minimum Number of Arrows to Burst Balloons || c++ ||||||Medium| |0453|Minimum Moves to Equal Array Elements||c++|python||||rust|Easy| |0454|4Sum II || c++ |python|||||Medium| |0455|Assign Cookies || c++ |python|||||Easy| |0458|Poor Pigs || c++ |python||||rust|Hard| |0459|Repeated Substring Pattern||c++|python|go|js|java||Easy| |0462|Minimum Moves to Equal Array Elements II || c++ |python|||||Medium| |0473|Matchsticks to Square||c++|python|go