{"id":21106677,"url":"https://github.com/gnodivad/leetcode","last_synced_at":"2026-03-19T18:55:00.237Z","repository":{"id":165530271,"uuid":"343327191","full_name":"gnodivad/leetcode","owner":"gnodivad","description":"✅  Solutions to LeetCode by Java","archived":false,"fork":false,"pushed_at":"2021-06-14T03:38:20.000Z","size":197,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T09:14:29.784Z","etag":null,"topics":["leetcode","leetcode-java","leetcode-solutions","leetcode-sql"],"latest_commit_sha":null,"homepage":"https://leetcode.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnodivad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-01T07:29:42.000Z","updated_at":"2022-10-25T02:24:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"85c2eee5-074a-4a21-841f-005d1f4e0dbc","html_url":"https://github.com/gnodivad/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnodivad/leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodivad%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodivad%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodivad%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodivad%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnodivad","download_url":"https://codeload.github.com/gnodivad/leetcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodivad%2Fleetcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264640,"owners_count":23439247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leetcode","leetcode-java","leetcode-solutions","leetcode-sql"],"created_at":"2024-11-20T00:27:59.883Z","updated_at":"2026-02-06T18:06:41.359Z","avatar_url":"https://github.com/gnodivad.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode\n\n## Problems\n|  #   | Difficulty |                                                                                           Title                                                                                           |                                                               Solutions                                                               |                               Tag                                |\n|:----:|:----------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------:|\n|  1   |    Easy    |                                                                     [Two Sum](https://leetcode.com/problems/two-sum)                                                                      |                                   [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0001-two-sum.md)                                   |                        Array, Hash Table                         |\n|  15  |   Medium   |                                                                        [3 Sum](https://leetcode.com/problems/3sum)                                                                        |                                    [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0015-3sum.md)                                     |                       Array, Two Pointers                        |\n|  19  |   Medium   |                                            [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list)                                             |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0019-remove-nth-node-from-end-of-list.md)                       |                           Linked List                            |\n|  21  |    Easy    |                                                      [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists)                                                       |                           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0021-merge-two-sorted-lists.md)                            |                           Linked List                            |\n|  26  |    Easy    |                                         [Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array)                                          |                     [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0026-remove-duplicates-from-sorted-array.md)                     |                              Array                               |\n|  33  |   Medium   |                                              [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array)                                               |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0033-search-in-rotated-sorted-array.md)                        |                       Array, Binary Search                       |\n|  34  |   Medium   |                     [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array)                      |           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0034-find-first-and-last-position-of-element-in-sorted-array.md)           |                       Array, Binary Search                       |\n|  39  |   Medium   |                                                             [Combination Sum](https://leetcode.com/problems/combination-sum)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0039-combination-sum.md)                               |                           Backtracking                           |\n|  46  |    Easy    |                                                                [Permutations](https://leetcode.com/problems/permutations)                                                                 |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0046-permutations.md)                                 |                           Backtracking                           |\n|  51  |    Hard    |                                                                    [N-Queens](https://leetcode.com/problems/n-queens)                                                                     |                                  [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0051-n-queens.md)                                   |                           Backtracking                           |\n|  53  |   Medium   |                                                            [Maximum Subarray](https://leetcode.com/problems/maximum-subarray)                                                             |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0053-maximum-subarray.md)                               | Array, Dynamic Programming, Kadane Algorithm, Divide and Conquer |\n|  54  |   Medium   |                                                               [Spiral Matrix](https://leetcode.com/problems/spiral-matrix)                                                                |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0054-spiral-matrix.md)                                |                              Array                               |\n|  56  |   Medium   |                                                             [Merge Intervals](https://leetcode.com/problems/merge-intervals)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0056-merge-intervals.md)                               |                Array, Graph, Connected Component                 |\n|  62  |   Medium   |                                                                [Unique Paths](https://leetcode.com/problems/unique-paths)                                                                 |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0062-unique-paths.md)                                 |                       Dynamic Programming                        |\n|  66  |    Easy    |                                                                    [Plus One](https://leetcode.com/problems/plus-one)                                                                     |                                  [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0066-plus-one.md)                                   |                              Array                               |\n|  69  |    Easy    |                                                                      [Sqrt(x)](https://leetcode.com/problems/sqrtx)                                                                       |                                    [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0069-sqrtx.md)                                    |                          Binary Search                           |\n|  70  |    Easy    |                                                             [Climbing Stairs](https://leetcode.com/problems/climbing-stairs)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0070-climbing-stairs.md)                               |                       Dynamic Programming                        |\n|  72  |    Hard    |                                                               [Edit Distance](https://leetcode.com/problems/edit-distance)                                                                |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0070-edit-distance.md)                                |                       Dynamic Programming                        |\n|  75  |    Hard    |                                                                 [Sort Colors](https://leetcode.com/problems/sort-colors)                                                                  |                                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0075-sort-colors.md)                                 |                       Dynamic Programming                        |\n|  83  |    Easy    |                                          [Remove Duplicates from Sorted List](https://leetcode.com/problems/remove-duplicates-from-sorted-list)                                           |                     [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0083-remove-duplicates-from-sorted-list.md)                      |                           Linked List                            |\n|  94  |   Medium   |                                               [Binary Tree Inorder Traversal](https://leetcode.com/problems/binary-tree-inorder-traversal)                                                |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0094-binary-tree-inorder-traversal.md)                        |                  Binary Tree, Morris Traversal                   |\n|  98  |   Medium   |                                                 [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree)                                                  |                         [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0098-validate-binary-search-tree.md)                         |                           Linked List                            |\n| 101  |    Easy    |                                                              [Symmetric Tree](https://leetcode.com/problems/symmetric-tree)                                                               |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0101-symmetric-tree.md)                                |                               BFS                                |\n| 102  |   Medium   |                                           [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal)                                            |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0102-binary-tree-level-order-traversal.md)                      |                               BFS                                |\n| 104  |    Easy    |                                                [Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree)                                                 |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0104-maximum-depth-of-binary-tree.md)                         |                               BST                                |\n| 108  |    Easy    |                                  [Convert Sorted Array to Binary Search Tree](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree)                                   |                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0108-convert-sorted-array-to-binary-search-tree.md)                  |                               BST                                |\n| 110  |    Easy    |                                                        [Balanced Binary Tree](https://leetcode.com/problems/balanced-binary-tree)                                                         |                            [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0110-balanced-binary-tree.md)                             |                               BST                                |\n| 112  |    Easy    |                                                                    [Path Sum](https://leetcode.com/problems/path-sum)                                                                     |                                  [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0112-path-sum.md)                                   |                           Binary Tree                            |\n| 121  |    Easy    |                                             [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock)                                              |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0121-best-time-to-buy-and-sell-stock.md)                       |                       Dynamic Programming                        |\n| 122  |    Easy    |                                          [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii)                                           |                     [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0122-best-time-to-buy-and-sell-stock-ii.md)                      |                              Array                               |\n| 125  |    Easy    |                                                            [Valid Palindrome](https://leetcode.com/problems/valid-palindrome)                                                             |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0125-valid-palindrome.md)                               |                       String, Two Pointers                       |\n| 130  |   Medium   |                                                          [Surrounded Regions](https://leetcode.com/problems/surrounded-regions)                                                           |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0130-surrounded-regions.md)                              |                               DFS                                |\n| 134  |   Medium   |                                                                 [Gas Station](https://leetcode.com/problems/gas-station)                                                                  |                                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0134-gas-station.md)                                 |                              Array                               |\n| 141  |    Easy    |                                                           [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle)                                                            |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0141-linked-list-cycle.md)                              |           Linked List, Floyd's Cycle Finding Algorithm           |\n| 144  |   Medium   |                                              [Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal)                                               |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0144-binary-tree-preorder-traversal.md)                        |                  Binary Tree, Morris Traversal                   |\n| 145  |   Medium   |                                             [Binary Tree Postorder Traversal](https://leetcode.com/problems/binary-tree-postorder-traversal)                                              |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0145-binary-tree-postorder-traversal.md)                       |                           Binary Tree                            |\n| 146  |   Medium   |                                                                   [LRU Cache](https://leetcode.com/problems/lru-cache)                                                                    |                                  [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0146-lru-cache.md)                                  |                          LinkedHashMap                           |\n| 150  |   Medium   |                                            [Evaluate Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation)                                             |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0150-evaluate-reverse-polish-notation.md)                       |                              Stack                               |\n| 151  |   Medium   |                                                   [Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string)                                                    |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0151-reverse-words-in-a-string.md)                          |                              String                              |\n| 160  |    Easy    |                                            [Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists)                                             |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0160-intersection-of-two-linked-lists.md)                       |                           Linked List                            |\n| 162  |   Medium   |                                                           [Find Peak Element](https://leetcode.com/problems/find-peak-element)                                                            |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0162-find-peak-element.md)                              |                              Array                               |\n| 167  |    Easy    |                                           [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted)                                            |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0167-two-sum-ii-input-array-is-sorted.md)                       |                       Array, Two Pointers                        |\n| 198  |   Medium   |                                                                [House Robber](https://leetcode.com/problems/house-robber)                                                                 |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0198-house-robber.md)                                 |                       Dynamic Programming                        |\n| 200  |   Medium   |                                                           [Number of Islands](https://leetcode.com/problems/number-of-islands)                                                            |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0200-number-of-islands.md)                              |                          2D Array, DFS                           |\n| 206  |    Easy    |                                                         [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list)                                                          |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0206-reverse-linked-list.md)                             |                           Linked List                            |\n| 207  |   Medium   |                                                             [Course Schedule](https://leetcode.com/problems/course-schedule)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0207-course-schedule.md)                               |                         Topological Sort                         |\n| 210  |   Medium   |                                                          [Course Schedule II](https://leetcode.com/problems/course-schedule-ii)                                                           |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0207-course-schedule-ii.md)                              |                         Topological Sort                         |\n| 215  |   Medium   |                                             [Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array)                                              |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0215-kth-largest-element-in-an-array.md)                       |                        Heap, Quickselect                         |\n| 226  |    Easy    |                                                          [Invert Binary Tree](https://leetcode.com/problems/invert-binary-tree)                                                           |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0226-invert-binary-tree.md)                              |                              Array                               |\n| 230  |   Medium   |                                               [Kth Smallest Element in a BST](https://leetcode.com/problems/kth-smallest-element-in-a-bst)                                                |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0230-kth-smallest-element-in-a-bst.md)                        |                              Array                               |\n| 234  |    Easy    |                                                      [Palindrome Linked List](https://leetcode.com/problems/palindrome-linked-list)                                                       |                           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0234-palindrome-linked-list.md)                            |                           Linked List                            |\n| 235  |   Medium   |                              [Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree)                               |               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0235-lowest-common-ancestor-of-a-binary-search-tree.md)                |                        Binary Search Tree                        |\n| 237  |    Easy    |                                                [Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list)                                                 |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0237-delete-node-in-a-linked-list.md)                         |                               BST                                |\n| 238  |   Medium   |                                                [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self)                                                 |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0238-product-of-array-except-self.md)                         |                              Array                               |\n| 266  |    Easy    |                                                      [Palindrome Permutation](https://leetcode.com/problems/palindrome-permutation)                                                       |                           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0266-palindrome-permutation.md)                            |                              String                              |\n| 270  |    Easy    |                                            [Closest Binary Search Tree Value](https://leetcode.com/problems/closest-binary-search-tree-value)                                             |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0270-closest-binary-search-tree-value.md)                       |                        BST, Binary Search                        |\n| 283  |    Easy    |                                                                 [Move Zeroes](https://leetcode.com/problems/move-zeroes)                                                                  |                                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0283-move-zeroes.md)                                 |                              Array                               |\n| 285  |   Medium   |                                                    [Inorder Successor in BST](https://leetcode.com/problems/inorder-successor-in-bst)                                                     |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0285-inorder-successor-in-bst.md)                           |                               BST                                |\n| 287  |   Medium   |                                                   [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number)                                                    |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0287-find-the-duplicate-number.md)                          |                          Array, HashSet                          |\n| 322  |   Medium   |                                                                 [Coin Change](https://leetcode.com/problems/coin-change)                                                                  |                                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0322-coin-change.md)                                 |                       Dynamic Programming                        |\n| 346  |    Easy    |                                             [Moving Average from Data Stream](https://leetcode.com/problems/moving-average-from-data-stream)                                              |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0287-moving-average-from-data-stream.md)                       |                              Queue                               |\n| 349  |    Easy    |                                                  [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays)                                                   |                         [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0349-intersection-of-two-arrays.md)                          |                              Array                               |\n| 359  |    Easy    |                                                         [Logger Rate Limiter](https://leetcode.com/problems/logger-rate-limiter)                                                          |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0359-logger-rate-limiter.md)                             |                             HashMap                              |\n| 383  |    Easy    |                                                                 [Ransom Note](https://leetcode.com/problems/ransom-note)                                                                  |                                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0383-ransom-note.md)                                 |                             HashMap                              |\n| 387  |    Easy    |                                          [First Unique Character in a String](https://leetcode.com/problems/first-unique-character-in-a-string)                                           |                     [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0387-first-unique-character-in-a-string.md)                      |                              String                              |\n| 392  |    Easy    |                                                              [Is Subsequence](https://leetcode.com/problems/is-subsequence)                                                               |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0392-is-subsequence.md)                                |                       Array, Two Pointers                        |\n| 443  |   Medium   |                                                          [String Compression](https://leetcode.com/problems/string-compression)                                                           |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0443-string-compression.md)                              |                               BST                                |\n| 450  |   Medium   |                                                        [Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst)                                                         |                            [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0450-delete-node-in-a-bst.md)                             |                               BST                                |\n| 509  |    Easy    |                                                            [Fibonacci Number](https://leetcode.com/problems/fibonacci-number)                                                             |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0509-fibonacci-number.md)                               |                            Recursion                             |\n| 511  |    Easy    |                                                        [Game Play Analysis I](https://leetcode.com/problems/game-play-analysis-i)                                                         |                             [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0511-game-play-analysis-i.md)                             |                               SQL                                |\n| 542  |   Medium   |                                                                   [01 Matrix](https://leetcode.com/problems/01-matrix)                                                                    |                                  [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0542-01-matrix.md)                                   |                               BST                                |\n| 543  |    Easy    |                                                     [Diameter of Binary Tree](https://leetcode.com/problems/diameter-of-binary-tree)                                                      |                           [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0543-diameter-of-binary-tree.md)                            |                               BST                                |\n| 547  |   Medium   |                                                         [Number of Provinces](https://leetcode.com/problems/number-of-provinces)                                                          |                             [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0547-number-of-provinces.md)                              |                            Union Find                            |\n| 586  |    Easy    |                               [Customer Placing the Largest Number of Orders](https://leetcode.com/problems/customer-placing-the-largest-number-of-orders)                                |                [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0586-customer-placing-the-largest-number-of-orders.md)                 |                               SQL                                |\n| 595  |    Easy    |                                                               [Big Countries](https://leetcode.com/problems/big-countries)                                                                |                                [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0595-big-countries.md)                                 |                               SQL                                |\n| 613  |    Easy    |                                                 [Shortest Distance in a Line](https://leetcode.com/problems/shortest-distance-in-a-line)                                                  |                         [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0613-shortest-distance-in-a-line.md)                          |                               SQL                                |\n| 622  |   Medium   |                                                       [Design Circular Queue](https://leetcode.com/problems/design-circular-queue)                                                        |                            [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0622-design-circular-queue.md)                             |                              Array                               |\n| 627  |    Easy    |                                                                 [Swap Salary](https://leetcode.com/problems/swap-salary)                                                                  |                                 [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/0627-swap-salary.md)                                  |                               SQL                                |\n| 684  |   Medium   |                                                        [Redundant Connection](https://leetcode.com/problems/redundant-connection)                                                         |                            [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0684-redundant-connection.md)                             |                            Union Find                            |\n| 701  |   Medium   |                                            [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree)                                             |                      [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0701-insert-into-a-binary-search-tree.md)                       |                               BST                                |\n| 704  |    Easy    |                                                               [Binary Search](https://leetcode.com/problems/binary-search)                                                                |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0704-binary-search.md)                                |                       Array, Binary Search                       |\n| 709  |    Easy    |                                                               [To Lower Case](https://leetcode.com/problems/to-lower-case)                                                                |                                [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0709-to-lower-case.md)                                |                              String                              |\n| 743  |   Medium   |                                                          [Network Delay Time](https://leetcode.com/problems/network-delay-time)                                                           |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0746-network-delay-time.md)                              |                       Dijkstra's Algorithm                       |\n| 746  |    Easy    |                                                    [Min Cost Climbing Stairs](https://leetcode.com/problems/min-cost-climbing-stairs)                                                     |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0746-min-cost-climbing-stairs.md)                           |                       Dynamic Programming                        |\n| 760  |    Easy    |                                                       [Find Anagram Mappings](https://leetcode.com/problems/find-anagram-mappings)                                                        |                            [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0760-find-anagram-mappings.md)                            |                         Array, HashTable                         |\n| 771  |    Easy    |                                                           [Jewels and Stones](https://leetcode.com/problems/jewels-and-stones)                                                            |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0771-jewels-and-stones.md)                              |                          Array, HashSet                          |\n| 787  |   Medium   |                                             [Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops)                                              |                       [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0787-cheapest-flights-within-k-stops.md)                       |                       Dijkstra's Algorithm                       |\n| 841  |   Medium   |                                                              [Keys and Rooms](https://leetcode.com/problems/keys-and-rooms)                                                               |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0845-keys-and-rooms.md)                                |                               DFS                                |\n| 845  |   Medium   |                                                   [Longest Mountain in Array](https://leetcode.com/problems/longest-mountain-in-array)                                                    |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0845-longest-mountain-in-array.md)                          |                              Array                               |\n| 896  |    Easy    |                                                             [Monotonic Array](https://leetcode.com/problems/monotonic-array)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0896-monotonic-array.md)                               |                              Array                               |\n| 938  |    Easy    |                                                            [Range Sum of BST](https://leetcode.com/problems/range-sum-of-bst)                                                             |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0938-range-sum-of-bst.md)                               |                               BST                                |\n| 947  |   Medium   |                                 [Most Stones Removed with Same Row or Column](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column)                                  |                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0947-most-stones-removed-with-same-row-or-column.md)                 |                            Union Find                            |\n| 973  |   Medium   |                                                  [K Closest Points to Origin](https://leetcode.com/problems/k-closest-points-to-origin)                                                   |                         [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0973-k-closest-points-to-origin.md)                          |                               Heap                               |\n| 977  |    Easy    |                                                   [Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array)                                                    |                          [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0977-squares-of-a-sorted-array.md)                          |                       Array, Two Pointers                        |\n| 994  |   Medium   |                                                             [Rotting Oranges](https://leetcode.com/problems/rotting-oranges)                                                              |                               [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/0994-rotting-oranges.md)                               |                           BST Pointers                           |\n| 1008 |   Medium   |                        [Construct Binary Search Tree from Preorder Traversal](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal)                         |            [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1008-construct-binary-search-tree-from-preorder-traversal.md)             |                               BST                                |\n| 1020 |   Medium   |                                                          [Number of Enclaves](https://leetcode.com/problems/number-of-enclaves)                                                           |                              [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1020-number-of-enclaves.md)                              |                               DFS                                |\n| 1069 |    Easy    |                                                   [Product Sales Analysis II](https://leetcode.com/problems/product-sales-analysis-ii)                                                    |                          [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1069-product-sales-analysis-ii.md)                           |                               SQL                                |\n| 1091 |   Medium   |                                              [Shortest Path in Binary Matrix](https://leetcode.com/problems/shortest-path-in-binary-matrix)                                               |                        [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1091-shortest-path-in-binary-matrix.md)                        |                               BFS                                |\n| 1108 |    Easy    |                                                     [Defanging an IP Address](https://leetcode.com/problems/defanging-an-ip-address/)                                                     |                           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1108-defanging-an-ip-address.md)                           |                              String                              |\n| 1119 |    Easy    |                                                 [Remove Vowels from a String](https://leetcode.com/problems/remove-vowels-from-a-string/)                                                 |                         [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1119-remove-vowels-from-a-string.md)                         |                              String                              |\n| 1162 |   Medium   |                                                [As Far from Land as Possible](https://leetcode.com/problems/as-far-from-land-as-possible/)                                                |                        [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1162-as-far-from-land-as-possible.md)                         |                              String                              |\n| 1173 |    Easy    |                                                         [Single-Row Keyboard](https://leetcode.com/problems/single-row-keyboard/)                                                         |                             [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1173-single-row-keyboard.md)                             |                              String                              |\n| 1200 |    Easy    |                                                 [Minimum Absolute Difference](https://leetcode.com/problems/minimum-absolute-difference/)                                                 |                         [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1200-minimum-absolute-difference.md)                         |                          Array, Sorting                          |\n| 1303 |    Easy    |                                                          [Find the Team Size](https://leetcode.com/problems/find-the-team-size)                                                           |                              [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1303-find-the-team-size.md)                              |                               SQL                                |\n| 1334 |   Medium   | [Find the City With the Smallest Number of Neighbors at a Threshold Distance](https://leetcode.com/problems/find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance/) | [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.md) |                       Dijkstra's Algorithm                       |\n| 1350 |    Easy    |                                           [Students With Invalid Departments](https://leetcode.com/problems/students-with-invalid-departments)                                            |                      [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1350-students-with-invalid-departments.md)                       |                               SQL                                |\n| 1378 |    Easy    |                              [Replace Employee ID With The Unique Identifier](https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier)                               |                [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1378-replace-employee-id-with-the-unique-identifier.md)                |                               SQL                                |\n| 1431 |    Easy    |                                    [Kids With the Greatest Number of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/)                                    |                  [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1431-kids-with-the-greatest-number-of-candies.md)                   |                              Array                               |\n| 1464 |    Easy    |                                 [Maximum Product of Two Elements in an Array](https://leetcode.com/problems/maximum-product-of-two-elements-in-an-array/)                                 |                 [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1464-maximum-product-of-two-elements-in-an-array.md)                 |                              Array                               |\n| 1470 |    Easy    |                                                           [Shuffle the Array](https://leetcode.com/problems/shuffle-the-array/)                                                           |                              [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1470-shuffle-the-array.md)                              |                              Array                               |\n| 1480 |    Easy    |                                                     [Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)                                                     |                           [\u003cimg height=20 src=\"icons/java.svg\"\u003e](solutions/1480-running-sum-of-1d-array.md)                           |                              Array                               |\n| 1512 |    Easy    |                                                        [Number of Good Pairs](https://leetcode.com/problems/number-of-good-pairs)                                                         |                             [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1512-number-of-good-pairs.md)                             |                              Array                               |\n| 1571 |    Easy    |                                                           [Warehouse Manager](https://leetcode.com/problems/warehouse-manager)                                                            |                              [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1571-warehouse-manager.md)                               |                               SQL                                |\n| 1581 |    Easy    |                      [Customer Who Visited but Did Not Make Any Transactions](https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions)                       |            [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1581-customer-who-visited-but-did-not-make-any-transactions.md)            |                               SQL                                |\n| 1587 |    Easy    |                                                     [Bank Account Summary II](https://leetcode.com/problems/bank-account-summary-ii)                                                      |                           [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1587-bank-account-summary-ii.md)                            |                               SQL                                |\n| 1623 |    Easy    |                             [All Valid Triplets That Can Represent a Country](https://leetcode.com/problems/all-valid-triplets-that-can-represent-a-country)                              |               [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1623-all-valid-triplets-that-can-represent-a-country.md)                |                               SQL                                |\n| 1672 |    Easy    |                                                     [Richest Customer Wealth](https://leetcode.com/problems/richest-customer-wealth)                                                      |                           [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1672-richest-customer-wealth.md)                            |                              Array                               |\n| 1683 |    Easy    |                                                              [Invalid Tweets](https://leetcode.com/problems/invalid-tweets)                                                               |                                [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1683-invalid-tweets.md)                                |                               SQL                                |\n| 1693 |    Easy    |                                                 [Recyclable and Low Fat Products](https://leetcode.com/problems/daily-leads-and-partners)                                                 |                           [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1693-daily-leads-and-partners.md)                           |                               SQL                                |\n| 1741 |    Easy    |                                      [Find Total Time Spent by Each Employee](https://leetcode.com/problems/find-total-time-spent-by-each-employee)                                       |                    [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1741-find-total-time-spent-by-each-employee.md)                    |                               SQL                                |\n| 1757 |    Easy    |                                             [Recyclable and Low Fat Products](https://leetcode.com/problems/recyclable-and-low-fat-products)                                              |                       [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1757-recyclable-and-low-fat-products.md)                        |                               SQL                                |\n| 1821 |    Easy    |                              [Find Customers With Positive Revenue this Year](https://leetcode.com/problems/find-customers-with-positive-revenue-this-year)                               |                [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1821-find-customers-with-positive-revenue-this-year.md)                |                               SQL                                |\n| 1853 |    Easy    |                                                         [Convert Date Format](https://leetcode.com/problems/convert-date-format)                                                          |                             [\u003cimg height=20 src=\"icons/sql.svg\"\u003e](solutions/1853-convert-date-format.md)                              |                               SQL                                |\n\n## Snippets\n### Convert List\u003cInteger\u003e to int[]\n```java\nList\u003cInteger\u003e list = new ArrayList\u003c\u003e();\nint[] array = list.stream().mapToInt(i-\u003ei).toArray();\n```\n### Convert int[] to List\u003cInteger\u003e\n```java\nint[] nums = new int[]{1, 2, 3};\nList\u003cInteger\u003e numList = Arrays.stream(nums).boxed().collect(Collectors.toList());\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnodivad%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnodivad%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnodivad%2Fleetcode/lists"}