Source Code: leetcode-setup.go
Download:
- windows: leetcode-setup.exe
wget https://github.com/comevback/leetcode/blob/main/leetcode-setup.exe -O leetcode-setup.exe
- macOS: leetcode-setup-mac
wget https://github.com/comevback/leetcode/blob/main/leetcode-setup-mac -O leetcode-setup
- linux: leetcode-setup-linux
wget https://github.com/comevback/leetcode/blob/main/leetcode-setup-linux -O leetcode-setup
Move the Binary File and Set Execution Permissions:
sudo mv leetcode-setup /usr/local/bin/ &&
sudo chmod +x /usr/local/bin/leetcode-setup
-
Create a Directory:
- Create a directory where you will store the binary. Recommended locations are
C:\Tools
orC:\Users\YourUsername\bin
.
- Create a directory where you will store the binary. Recommended locations are
-
Move the Binary File:
- Move the
leetcode-setup.exe
file into the directory you created.
- Move the
-
Add the Directory to the PATH:
- Right-click on "This PC" or "My Computer", and select "Properties".
- Click on "Advanced system settings".
- In the "System Properties" window, click on "Environment Variables".
- In the "System variables" section, find and select the "Path" variable, then click on "Edit".
- In the "Edit environment variable" window, click "New" and enter the path to your directory, e.g.,
C:\Tools
. - Click "OK" to save the changes.
Priority-Queue-implementation.md
- 104-Maximum-Depth-of-Binary-Tree.md
- LCR-175-binary-tree-depth.md
- 144-Binary-Tree-Preorder-Traversal.md
- 543-Diameter-of-Binary-Tree.md
- 257-Binary-Tree-Paths.md
- 226-Invert-Binary-Tree.md
- 116-Populating-Next-Right-Pointers-in-Each-Node.md
- 114-Flatten-Binary-Tree-to-Linked-List.md
- 654-Maximum-Binary-Tree.md
- 105-Construct-Binary-Tree-from-Preorder-and-Inorder-Traversal.md
- 106-Construct-Binary-Tree-from-Inorder-and-Postorder-Traversal.md
- 889-Construct-Binary-Tree-from-Preorder-and-Postorder-Traversal.md
- 652-Find-Duplicate-Subtrees.md
- 297-Serialize-and-Deserialize-Binary-Tree.md
- 912-Sort-an-Array.md
- 315-Count-of-Smaller-Numbers-After-Self.md
- 1038-Binary-Search-Tree-to-Greater-Sum-Tree.md
- 538-Convert-BST-to-Greater-Tree.md
- 701-Insert-into-a-Binary-Search-Tree.md
- 98-Validate-Binary-Search-Tree.md
- 95-Unique-Binary-Search-Trees-II.md
- 96-Unique-Binary-Search-Trees.md
- 215-Kth-Largest-Element-in-an-Array.md
- 236-Lowest-Common-Ancestor-of-a-Binary-Tree.md
- 235-Lowest-Common-Ancestor-of-a-Binary-Search-Tree.md
- 222-Count-Complete-Tree-Nodes.md
- 199-Binary-Tree-Right-Side-View.md
- 298-binary-tree-longest-consecutive-sequence.md
- 988-Smallest-String-Starting-From-Leaf.md
- 1457-Pseudo-Palindromic-Paths-in-a-Binary-Tree.md
- 270-closest-binary-search-tree-value.md
- 404-Sum-of-Left-Leaves.md
- 623-Add-One-Row-to-Tree.md
- 971-Flip-Binary-Tree-To-Match-Preorder-Traversal.md
- 987-Vertical-Order-Traversal-of-a-Binary-Tree.md
- 993-Cousins-in-Binary-Tree.md
- 1315-Sum-of-Nodes-with-Even-Valued-Grandparent.md
- 1448-Count-Good-Nodes-in-Binary-Tree.md
- 1469-find-all-the-lonely-nodes.md
- 1602-find-nearest-right-node-in-binary-tree.md
- 437-Path-Sum-III.md
- 513-Find-Bottom-Left-Tree-Value.md
- 1261-Find-Elements-in-a-Contaminated-Binary-Tree.md
- 100-Same-Tree.md
- 572-Subtree-of-Another-Tree.md
- 1367-Linked-List-in-Binary-Tree.md
- 894-All-Possible-Full-Binary-Trees.md
- 998-Maximum-Binary-Tree-II.md
- 1110-Delete-Nodes-And-Return-Forest.md
- 101-Symmetric-Tree.md
- 951-Flip-Equivalent-Binary-Trees.md
- 124-Binary-Tree-Maximum-Path-Sum.md
- 112-Path-Sum.md
- 113-Path-Sum-II.md
- 617-Merge-Two-Binary-Trees.md
- 897-Increasing-Order-Search-Tree.md
- 938-Range-Sum-of-BST.md
- 1379-Find-a-Corresponding-Node-of-a-Binary-Tree-in-a-Clone-of-That-Tree.md
- 110-Balanced-Binary-Tree.md
- 508-Most-Frequent-Subtree-Sum.md
- 563-Binary-Tree-Tilt.md
- 687-Longest-Univalue-Path.md
- 865-Smallest-Subtree-with-all-the-Deepest-Nodes.md
- 1026-Maximum-Difference-Between-Node-and-Ancestor.md
- 1339-Maximum-Product-of-Splitted-Binary-Tree.md
- 1372-Longest-ZigZag-Path-in-a-Binary-Tree.md
- 814-Binary-Tree-Pruning.md
- 2049-Count-Nodes-With-the-Highest-Score.md
- 968-Binary-Tree-Cameras.md
- 979-Distribute-Coins-in-Binary-Tree.md
- 1080-Insufficient-Nodes-in-Root-to-Leaf-Paths.md
- 117-Populating-Next-Right-Pointers-in-Each-Node-II.md
- 662-Maximum-Width-of-Binary-Tree.md
- 515-Find-Largest-Value-in-Each-Tree-Row.md
- 637-Average-of-Levels-in-Binary-Tree.md
- 102-Binary-Tree-Level-Order-Traversal.md
- 958-Check-Completeness-of-a-Binary-Tree.md
- 1161-Maximum-Level-Sum-of-a-Binary-Tree.md
- 1302-Deepest-Leaves-Sum.md
- 1609-Even-Odd-Tree.md
- 103-Binary-Tree-Zigzag-Level-Order-Traversal.md
- 919-Complete-Binary-Tree-Inserter.md
- 863-All-Nodes-Distance-K-in-Binary-Tree.md
- 582-kill-process.md
- 536-construct-binary-tree-from-string.md
- 99-Recover-Binary-Search-Tree.md
- 669-Trim-a-Binary-Search-Tree.md
- 671-Second-Minimum-Node-In-a-Binary-Tree.md
- 1008-Construct-Binary-Search-Tree-from-Preorder-Traversal.md
- 108-Convert-Sorted-Array-to-Binary-Search-Tree.md
- 173-Binary-Search-Tree-Iterator.md
- 449-Serialize-and-Deserialize-BST.md
- 1305-All-Elements-in-Two-Binary-Search-Trees.md
- 109-Convert-Sorted-List-to-Binary-Search-Tree.md
- 530-Minimum-Absolute-Difference-in-BST.md
- 129-Sum-Root-to-Leaf-Numbers.md
- 872-Leaf-Similar-Trees.md
- 94-Binary-Tree-Inorder-Traversal.md
- 111-Minimum-Depth-of-Binary-Tree.md
- 107-Binary-Tree-Level-Order-Traversal-II.md
- 145-Binary-Tree-Postorder-Traversal.md
- 501-Find-Mode-in-Binary-Search-Tree.md
- 655-Print-Binary-Tree.md
- 703-Kth-Largest-Element-in-a-Stream.md
- 2236-Root-Equals-Sum-of-Children.md
- 2265-Count-Nodes-Equal-to-Average-of-Subtree.md
- 2331-Evaluate-Boolean-Binary-Tree.md
- 2583-Kth-Largest-Sum-in-a-Binary-Tree.md
- 2385-Amount-of-Time-for-Binary-Tree-to-Be-Infected.md
- 2415-Reverse-Odd-Levels-of-Binary-Tree.md
19-Remove-Nth-Node-From-End-of-List.md
876-Middle-of-the-Linked-List.md
160-Intersection-of-Two-Linked-Lists.md
26-Remove-Duplicates-from-Sorted-Array.md
83-Remove-Duplicates-from-Sorted-List.md
5-Longest-Palindromic-Substring.md
82-Remove-Duplicates-from-Sorted-List-II.md
1836-Remove-Duplicates-from-Unsorted-List.md
378-Kth-Smallest-Element-in-a-Sorted-Matrix.md
373-Find-K-Pairs-with-Smallest-Sums.md
977-Squares-of-a-Sorted-Array.md
25-Reverse-Nodes-in-k-Group.md
303-Range-Sum-Query-Immutable.md
304-Range-Sum-Query-2D-Immutable.md
523-Continuous-Subarray-Sum.md
325-maximum-size-subarray-sum-equals-k.md
974-Subarray-Sums-Divisible-by-K.md
1124-Longest-Well-Performing-Interval.md
1109-Corporate-Flight-Bookings.md
76-Minimum-Window-Substring.md
438-Find-All-Anagrams-in-a-String.md
3-Longest-Substring-Without-Repeating-Characters.md
1658-Minimum-Operations-to-Reduce-X-to-Zero.md
713-Subarray-Product-Less-Than-K.md
1004-Max-Consecutive-Ones-III.md
1011-Capacity-To-Ship-Packages-Within-D-Days.md
410-Split-Array-Largest-Sum.md
658-Find-K-Closest-Elements.md
852-Peak-Index-in-a-Mountain-Array.md
33-Search-in-Rotated-Sorted-Array.md
81-Search-in-Rotated-Sorted-Array-II.md
528-Random-Pick-with-Weight.md
380-Insert-Delete-GetRandom-O1.md
710-Random-Pick-with-Blacklist.md
1081-Smallest-Subsequence-of-Distinct-Characters.md
316-Remove-Duplicate-Letters.md
- 1-Two-Sum.md
- 2-Add-Two-Number.md
- 1480-Running-Sum-of-1d-Array.md
- 1672-Richest-Customer-Wealth.md
- 412-Fizz-Buzz.md
- 876-Middle-of-the-Linked-List.md
- 383-Ransom-Note.md
- 88-Merge-Sorted-Array.md
- 27-Remove-Element.md
- 26-Remove-Duplicates-from-Sorted-Array.md
- 80-Remove-Duplicates-from-Sorted-Array-II.md
- 169-Majority-Element.md
- 189-Rotate-Array.md
- 121-Best-Time-to-Buy-and-Sell-Stock.md
- 122-Best-Time-to-Buy-and-Sell-Stock-II.md
- 55-Jump-Game.md
- 45-Jump-Game-II.md
- 1768-Merge-Strings-Alternately.md
- 1071-Greatest-Common-Divisor-of-Strings.md
- 1431-Kids-With-the-Greatest-Number-of-Candies.md
- 605-Can-Place-Flowers.md
- 345-Reverse-Vowels-of-a-String.md
- 217-Contains-Duplicate.md
- 53-Maximum-Subarray.md
- Longest-Word.md
- 283-Move-Zeroes.md
- * 1915-Number-of-Wonderful-Substrings.md
- 2215-Find-the-Difference-of-Two-Arrays.md
- 1207-Unique-Number-of-Occurrences.md
- 392-Is-Subsequence.md
- Merge-Sorted-Arrays.md
- 151-Reverse-Words-in-a-String.md
- 238-Product-of-Array-Except-Self.md
- 334-Increasing-Triplet-Subsequence.md
- * 443-String-Compression.md
- 2441-Largest-Positive-Integer-That-Exists-With-Its-Negative.md
- * 322-Coin-Change.md
- 881-Boats-to-Save-People.md
- 11-Container-With-Most-Water.md
- 1679-Max-Number-of-K-Sum-Pairs.md
- 237-Delete-Node-in-a-Linked-List.md
- 328-Odd-Even-Linked-List.md
- 206-Reverse-Linked-List.md
- 2130-Maximum-Twin-Sum-of-a-Linked-List.md
- 2487-Remove-Nodes-From-Linked-List.md
- 2816-Double-a-Number-Represented-as-a-Linked-List.md
- 1732-Find-the-Highest-Altitude.md
- 724-Find-Pivot-Index.md
- 506-Relative-Ranks.md
- 21-Merge-Two-Sorted-Lists.md
- 389-Find-the-Difference.md
- 28-Find-the-Index-of-the-First-Occurrence-in-a-String.md
- 242-Valid-Anagram.md
- 459-Repeated-Substring-Pattern.md
- * 3075-Maximize-Happiness-of-Selected-Children.md
- 66-Plus-One.md
- 1822-Sign-of-the-Product-of-an-Array.md
- 1502-Can-Make-Arithmetic-Progression-From-Sequence.md
- 896-Monotonic-Array.md
- 13-Roman-to-Integer.md
- 58-Length-of-Last-Word.md
- 709-To-Lower-Case.md
- 445-Add-Two-Numbers-II.md
- 682-Baseball-Game.md
- 657-Robot-Return-to-Origin.md
- 1275-Find-Winner-on-a-Tic-Tac-Toe-Game.md
- 1041-Robot-Bounded-In-Circle.md
- 643-Maximum-Average-Subarray-I.md
- 2373-Largest-Local-Values-in-a-Matrix.md
- 861-Score-After-Flipping-Matrix.md
- 700-Search-in-a-Binary-Search-Tree.md
- 450-Delete-Node-in-a-BST.md
- 2390-Removing-Stars-From-a-String.md
- 1657-Determine-if-Two-Strings-Are-Close.md
- 735-Asteroid-Collision.md
- 394-Decode-String.md
- 933-Number-of-Recent-Calls.md
- 1325-Delete-Leaves-With-a-Given-Value.md
- 649-Dota2-Senate.md
- 232-Implement-Queue-using-Stacks.md
- 1456-Maximum-Number-of-Vowels-in-a-Substring-of-Given-Length.md
- 78-Subsets.md
- 1493-Longest-Subarray-of-1's-After-Deleting-One-Element.md
- 125-Valid-Palindrome.md
- 1523-Count-Odd-Numbers-in-an-Interval-Range.md
- 1491-Average-Salary-Excluding-the-Minimum-and-Maximum-Salary.md
- 34-Find-First-and-Last-Position-of-Element-in-Sorted-Array.md
- 704-Binary-Search.md
- 274-H-Index.md
- 205-Isomorphic-Strings.md
- 225-Implement-Stack-using-Queues.md
- 143-Reorder-List.md
- 20-Valid-Parentheses.md
- 150-Evaluate-Reverse-Polish-Notation.md
- 388-Longest-Absolute-File-Path.md
- 155-Min-Stack.md
- 239-Sliding-Window-Maximum.md
- 622-Design-Circular-Queue.md
- 641-Design-Circular-Deque.md
- 1670-Design-Front-Middle-Back-Queue.md
- 496-Next-Greater-Element-I.md
- 503-Next-Greater-Element-II.md
- 556-Next-Greater-Element-III.md
- 1019-Next-Greater-Node-In-Linked-List.md
- 1944-Number-of-Visible-People-in-a-Queue.md
- 1475-Final-Prices-With-a-Special-Discount-in-a-Shop.md
- 901-Online-Stock-Span.md
- 402-Remove-K-Digits.md
- 1438-Longest-Continuous-Subarray-With-Absolute-Diff-Less-Than-or-Equal-to-Limit.md
- 862-Shortest-Subarray-with-Sum-at-Least-K.md
- 135-Candy.md
- 918-Maximum-Sum-Circular-Subarray.md
- 1696-Jump-Game-VI.md
- 1425-Constrained-Subsequence-Sum.md
- 146-LRU-Cache.md
- 134-Gas-Station.md
- 209-Minimum-Size-Subarray-Sum.md
- 290-Word-Pattern.md
- 49-Group-Anagrams.md
- 12-Integer-to-Roman.md
- 6-Zigzag-Conversion.md
- 7-Reverse-Integer.md
- 8-String-to-Integer-(atoi).md)
- 9-Palindrome-Number.md
- 29-Divide-Two-Integers.md
- 202-Happy-Number.md
- 2053-Kth-Distinct-String-in-an-Array.md
- 228-Summary-Ranges.md
- 2300-Successful-Pairs-of-Spells-and-Potions.md
- 35-Search-Insert-Position.md
- 67-Add-Binary.md
- 128-Longest-Consecutive-Sequence.md
- 190-Reverse-Bits.md
- 860-Lemonade-Change.md
- 118-Pascal's-Triangle.md
- C084.md
- B138.md
- Search-History.md
- lottery.md
- Word-Count-Part1.md
- Word-Count-Part2.md
- Word-Count-Part3.md
- Word-Count-Part4.md
- Word-Count-Part5.md
- Word-Count-Part6.md
- Word-Count-Part7.md
- Word-Count-final.md
- Orange-Divide.md
- Sort.md
- C097.md
- C139.md
- C120.md
- C030.md
- C043.md
- C090.md
- B029.md
- B131.md
- A066.md
- A081.md