{"id":31947360,"url":"https://github.com/ecgan/leetcode","last_synced_at":"2025-10-14T11:33:58.039Z","repository":{"id":40741638,"uuid":"199653132","full_name":"ecgan/leetcode","owner":"ecgan","description":"My JavaScript solutions for LeetCode problems. Tests with 100% code coverage.","archived":false,"fork":false,"pushed_at":"2025-07-08T16:33:23.000Z","size":1267,"stargazers_count":16,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T17:39:40.567Z","etag":null,"topics":["algorithms","data-structures","javascript","leetcode","leetcode-solutions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecgan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2019-07-30T13:04:01.000Z","updated_at":"2025-07-08T16:33:28.000Z","dependencies_parsed_at":"2025-07-08T17:31:05.609Z","dependency_job_id":"b1e9793a-ab61-483f-baab-ee5b17e0d953","html_url":"https://github.com/ecgan/leetcode","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/ecgan/leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgan%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgan%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgan%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgan%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecgan","download_url":"https://codeload.github.com/ecgan/leetcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgan%2Fleetcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019084,"owners_count":26086516,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["algorithms","data-structures","javascript","leetcode","leetcode-solutions"],"created_at":"2025-10-14T11:31:01.881Z","updated_at":"2025-10-14T11:33:58.014Z","avatar_url":"https://github.com/ecgan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leetcode\n\n[![Build Status](https://travis-ci.org/ecgan/leetcode.svg?branch=master)](https://travis-ci.org/ecgan/leetcode) [![codecov](https://codecov.io/gh/ecgan/leetcode/branch/master/graph/badge.svg)](https://codecov.io/gh/ecgan/leetcode)  [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nMy solutions for [LeetCode problems](https://leetcode.com/problemset/all/).\n\n## Usage\n\n### Running and testing locally in your machine\n\nFirst, install dependencies:\n\n```shell\nnpm install\n```\n\nTo run tests with jest:\n\n```shell\nnpm run test\n```\n\nTo run tests and generate code coverage report:\n\n```shell\nnpm run test:coverage\n```\n\n### Submitting / Running in LeetCode\n\n1. Find your problem in the [problems](/problems) folder.\n2. Copy the solution.\n3. Paste the code into LeetCode.\n4. Hit the Run or Submit button.\n\n### Pro-tip: URL / Folder Structure\n\nThe folder structure in this repository resembles the URL for LeetCode's problems, e.g.:\n\nLeetCode URL for Two Sum problem: https://\u003cspan\u003e\u003c/span\u003eleetcode.com/**problems/two-sum**\n\nFolder structure in this repository: https://\u003cspan\u003e\u003c/span\u003egithub.com/ecgan/leetcode/tree/master/**problems/two-sum**\n\n## Solutions\n\nThe listing below is sorted based on LeetCode #. If you are interested to see my latest solutions in chronological order, check out the [releases](https://github.com/ecgan/leetcode/releases) page, or my [code commits](https://github.com/ecgan/leetcode/commits/master).\n\n| LeetCode # | Title | Difficulty | Topics |\n|-----------:|:------|:-----------|:-------|\n| 1 | [Two Sum](/problems/two-sum) | Easy | Array, hash table |\n| 33 | [Search in Rotated Sorted Array](/problems/search-in-rotated-sorted-array) | Medium | Array, Binary Search |\n| 35 | [Search Insert Position](/problems/search-insert-position) | Easy | Array, binary search |\n| 49 | [Group Anagrams](/problems/group-anagrams) | Medium | Hash Table, String |\n| 53 | [Maximum Subarray](/problems/maximum-subarray) | Easy | Array, Divide and Conquer, Dynamic Programming |\n| 55 | [Jump Game](/problems/jump-game) | Medium | Array, Greedy |\n| 60 | [Permutation Sequence](/problems/permutation-sequence) | Medium | Math, Backtracking |\n| 62 | [Unique Paths](/problems/unique-paths) | Medium | Array, Dynamic Programming |\n| 64 | [Minimum Path Sum](/problems/minimum-path-sum) | Medium | Array, Dynamic Programming |\n| 70 | [Climbing Stairs](/problems/climbing-stairs) | Easy | Dynamic Programming |\n| 72 | [Edit Distance](/problems/edit-distance) | Hard | String, Dynamic Programming |\n| 75 | [Sort Colors](/problems/sort-colors) | Medium | Array, Two Pointers, Sort |\n| 96 | [Unique Binary Search Trees](/problems/unique-binary-search-trees) | Medium | Dynamic Programming, Tree |\n| 121 | [Best Time to Buy and Sell Stock](/problems/best-time-to-buy-and-sell-stock) | Easy | Array, Dynamic Programming |\n| 122 | [Best Time to Buy and Sell Stock II](/problems/best-time-to-buy-and-sell-stock-ii) | Easy | Array, Greedy |\n| 124 | [Binary Tree Maximum Path Sum](/problems/binary-tree-maximum-path-sum) | Hard | Tree, Depth-first Search |\n| 129 | [Sum Root to Leaf Numbers](/problems/sum-root-to-leaf-numbers) | Medium | Tree, Depth-first Search |\n| 130 | [Surrounded Regions](/problems/surrounded-regions) | Medium | Depth-first Search, Breadth-first Search, Union Find |\n| 136 | [Single Number](/problems/single-number) | Easy | Hash table, bit manipulation |\n| 137 | [Single Number II](/problems/single-number-ii) | Medium | Bit Manipulation |\n| 146 | [LRU Cache](/problems/lru-cache) | Medium | Design |\n| 155 | [Min Stack](/problems/min-stack) | Easy | Stack, Design |\n| 169 | [Majority Element](/problems/majority-element) | Easy | Array, Divide and Conquer, Bit Manipulation |\n| 189 | [Rotate Array](/problems/rotate-array) | Easy | Array |\n| 198 | [House Robber](/problems/house-robber) | Easy | Dynamic Programming |\n| 200 | [Number of Islands](/problems/number-of-islands) | Medium | Depth-first Search, Breadth-first Search, Union Find |\n| 201 | [Bitwise AND of Numbers Range](/problems/bitwise-and-of-numbers-range) | Medium | Bit Manipulation |\n| 202 | [Happy Number](/problems/happy-number) | Easy | Hash Table, Math |\n| 207 | [Course Schedule](/problems/course-schedule) | Medium | Depth-first Search, Breadth-first Search, Graph, Topological Sort |\n| 208 | [Implement Trie (Prefix Tree)](/problems/implement-trie-prefix-tree) | Medium | Design, Trie |\n| 212 | [Word Search II](/problems/word-search-ii) | Hard | Backtracking, Trie |\n| 221 | [Maximal Square](/problems/maximal-square) | Medium | Dynamic Programming |\n| 222 | [Count Complete Tree Nodes](/problems/count-complete-tree-nodes) | Medium | Binary Search, Tree |\n| 226 | [Invert Binary Tree](/problems/invert-binary-tree) | Easy | Tree |\n| 230 | [Kth Smallest Element in a BST](/problems/kth-smallest-element-in-a-bst) | Medium | Binary Search, Tree |\n| 231 | [Power of Two](/problems/power-of-two) | Easy | Math, Bit Manipulation |\n| 237 | [Delete Node in a Linked List](/problems/delete-node-in-a-linked-list) | Easy | Linked List |\n| 238 | [Product of Array Except Self](/problems/product-of-array-except-self) | Medium | Array |\n| 275 | [H-Index II](/problems/h-index-ii) | Medium | Binary Search |\n| 278 | [First Bad Version](/problems/first-bad-version) | Easy | Binary Search |\n| 279 | [Perfect Squares](/problems/perfect-squares) | Medium | Math, Dynamic Programming, Breadth-first Search |\n| 283 | [Move Zeroes](/problems/move-zeroes) | Easy | Array, Two Pointers |\n| 287 | [Find the Duplicate Number](/problems/find-the-duplicate-number) | Medium | Array, Two Pointers, Binary Search |\n| 303 | [Range Sum Query - Immutable](/problems/range-sum-query-immutable) | Easy | Dynamic Programming |\n| 328 | [Odd Even Linked List](/problems/odd-even-linked-list) | Medium | Linked List |\n| 332 | [Reconstruct Itinerary](/problems/reconstruct-itinerary) | Medium | Depth-first Search, Graph |\n| 338 | [Counting Bits](/problems/counting-bits) | Medium | Dynamic Programming, Bit Manipulation |\n| 344 | [Reverse String](/problems/reverse-string) | Easy | Two Pointers, String |\n| 349 | [Intersection of Two Arrays](/problems/intersection-of-two-arrays) | Easy | Hash table, two pointers, binary search, sort, set |\n| 350 | [Intersection of Two Arrays II](/problems/intersection-of-two-arrays-ii) | Easy | Hash Table, two pointers, binary search, sort |\n| 367 | [Valid Perfect Square](/problems/valid-perfect-square) | Easy | Math, Binary Search |\n| 368 | [Largest Divisible Subset](/problems/largest-divisible-subset) | Medium | Math, Dynamic Programming |\n| 380 | [Insert Delete GetRandom O(1)](/problems/insert-delete-getrandom-o1) | Medium | Array, Hash Table, Design |\n| 383 | [Ransom Note](/problems/ransom-note) | Easy | String |\n| 387 | [First Unique Character in a String](/problems/first-unique-character-in-a-string) | Easy | Hash Table, String |\n| 392 | [Is Subsequence](/problems/is-subsequence) | Easy | Binary Search, Dynamic Programming, Greedy |\n| 402 | [Remove K Digits](/problems/remove-k-digits) | Medium | Stack, Greedy |\n| 406 | [Queue Reconstruction by Height](/problems/queue-reconstruction-by-height) | Medium | Greedy |\n| 438 | [Find All Anagrams in a String](/problems/find-all-anagrams-in-a-string) | Medium | Hash Table |\n| 451 | [Sort Characters By Frequency](/problems/sort-characters-by-frequency) | Medium | Hash Table, Heap |\n| 468 | [Validate IP Address](/problems/validate-ip-address) | Medium | String |\n| 476 | [Number Complement](/problems/number-complement) | Easy | Bit Manipulation |\n| 518 | [Coin Change 2](/problems/coin-change-2) | Medium | - |\n| 525 | [Contiguous Array](/problems/contiguous-array) | Medium | Hash Table |\n| 528 | [Random Pick with Weight](/problems/random-pick-with-weight) | Medium | Binary Search, Random |\n| 540 | [Single Element in a Sorted Array](/problems/single-element-in-a-sorted-array) | Medium | - |\n| 543 | [Diameter of Binary Tree](/problems/diameter-of-binary-tree) | Easy | Tree |\n| 560 | [Subarray Sum Equals K](/problems/subarray-sum-equals-k) | Medium | Array, Hash Table |\n| 567 | [Permutation in String](/problems/permutation-in-string) | Medium | Two Pointers, Sliding Window |\n| 678 | [Valid Parenthesis String](/problems/valid-parenthesis-string) | Medium | String |\n| 700 | [Search in a Binary Search Tree](/problems/search-in-a-binary-search-tree) | Easy | Tree |\n| 714 | [Dungeon Game](/problems/dungeon-game) | Hard | Binary Search, Dynamic Programming |\n| 733 | [Flood Fill](/problems/flood-fill) | Easy | Depth-first Search |\n| 746 | [Min Cost Climbing Stairs](/problems/min-cost-climbing-stairs) | Easy | Array, Dynamic Programming |\n| 771 | [Jewels and Stones](/problems/jewels-and-stones) | Easy | Hash Table |\n| 787 | [Cheapest Flights Within K Stops](/problems/cheapest-flights-within-k-stops) | Medium | Dynamic Programming, Heap, Breadth-first Search |\n| 844 | [Backspace String Compare](/problems/backspace-string-compare) | Easy | Two Pointers, Stack |\n| 876 | [Middle of the Linked List](/problems/middle-of-the-linked-list) | Easy | Linked List |\n| 886 | [Possible Bipartition](/problems/possible-bipartition) | Medium | Depth-first Search |\n| 901 | [Online Stock Span](/problems/online-stock-span) | Medium | Stack |\n| 918 | [Maximum Sum Circular Subarray](/problems/maximum-sum-circular-subarray) | Medium | Array |\n| 973 | [K Closest Points to Origin](/problems/k-closest-points-to-origin) | Medium | Divide and Conquer, Heap, Sort |\n| 986 | [Interval List Intersections](/problems/interval-list-intersections) | Medium | Two Pointers |\n| 993 | [Cousins in Binary Tree](/problems/cousins-in-binary-tree) | Easy | Tree, Breadth-first Search |\n| 997 | [Find the Town Judge](/problems/find-the-town-judge) | Easy | Graph |\n| 1008 | [Construct Binary Search Tree from Preorder Traversal](/problems/construct-binary-search-tree-from-preorder-traversal) | Medium | Tree |\n| 1025 | [Divisor Game](/problems/divisor-game) | Easy | Math, Dynamic Programming |\n| 1029 | [Two City Scheduling](/problems/two-city-scheduling) | Easy | Greedy |\n| 1035 | [Uncrossed Lines](/problems/uncrossed-lines) | Medium | Array |\n| 1044 | [Longest Duplicate Substring](/problems/longest-duplicate-substring) | Hard | Hash Table, Binary Search |\n| 1046 | [Last Stone Weight](/problems/last-stone-weight) | Easy | Heap, Greedy |\n| 1143 | [Longest Common Subsequence](/problems/longest-common-subsequence) | Medium | Dynamic Programming |\n| 1144 | [Decrease Elements To Make Array Zigzag](/problems/decrease-elements-to-make-array-zigzag) | Medium | Array |\n| 1145 | [Binary Tree Coloring Game](/problems/binary-tree-coloring-game/) | Medium | Tree, depth-first search |\n| 1150 | [Check If a Number Is Majority Element in a Sorted Array](/problems/is-a-a-majority-element) | Easy | Array, binary search |\n| 1153 | [String Transforms Into Another String](/problems/string-transforms-into-another-string) | Hard | Graph |\n| 1154 | [Day of the Year](problems/day-of-the-year) | Easy | Math |\n| 1160 | [Find Words That Can Be Formed by Characters](/problems/find-words-that-can-be-formed-by-characters) | Easy | Array, hash table |\n| 1161 | [Maximum Level Sum of a Binary Tree](/problems/maximum-level-sum-of-a-binary-tree) | Medium | Graph |\n| 1162 | [As Far from Land as Possible](/problems/as-far-from-land-as-possible) | Medium | Breadth-first search, graph |\n| 1163 | [Last Substring in Lexicographical Order](/problems/last-substring-in-lexicographical-order) | Hard | String, suffix array |\n| 1165 | [Single-Row Keyboard](/problems/single-row-keyboard) | Easy | String |\n| 1167 | [Minimum Cost to Connect Sticks](/problems/minimum-cost-to-connect-sticks) | Medium | Greedy |\n| 1170 | [Compare Strings by Frequency of the Smallest Character](/problems/compare-strings-by-frequency-of-the-smallest-character) | Easy | Array, string |\n| 1177 | [Can Make Palindrome from Substring](/problems/can-make-palindrome-from-substring) | Medium | Array, string |\n| 1184 | [Distance Between Bus Stops](/problems/distance-between-bus-stops) | Easy | Array |\n| 1185 | [Day of the Week](/problems/day-of-the-week) | Easy | Array |\n| 1207 | [Unique Number of Occurrences](/problems/unique-number-of-occurrences) | Easy | Hash table |\n| 1208 | [Get Equal Substrings Within Budget](/problems/get-equal-substrings-within-budget) | Medium | Array, sliding window |\n| 1213 | [Intersection of Three Sorted Arrays](/problems/intersection-of-three-sorted-arrays) | Easy | Hash table, two pointers |\n| 1214 | [Two Sum BSTs](/problems/two-sum-bsts) | Medium | Binary search tree |\n| 1217 | [Play with Chips](/problems/play-with-chips) | Easy | Array, math, greedy |\n| 1232 | [Check If It Is a Straight Line](/problems/check-if-it-is-a-straight-line) | Easy | Array, Math, Geometry |\n| 1243 | [Array Transformation](/problems/array-transformation) | Easy | Array |\n| 1244 | [Design A Leaderboard](/problems/design-a-leaderboard) | Medium | Hash table, sort, design |\n| 1247 | [Minimum Swaps to Make Strings Equal](/problems/minimum-swaps-to-make-strings-equal) | Medium | String, greedy |\n| 1256 | [Encode Number](/problems/encode-number) | Medium | Math, bit manipulation |\n| 1260 | [Shift 2D Grid](/problems/shift-2d-grid) | Easy | Array |\n| 1261 | [Find Elements in a Contaminated Binary Tree](/problems/find-elements-in-a-contaminated-binary-tree) | Medium | Hash table, tree |\n| 1271 | [Hexspeak](/problems/hexspeak) | Easy | Math, string |\n| 1272 | [Remove Interval](/problems/remove-interval) | Medium | Math, line sweep |\n| 1275 | [Find Winner on a Tic Tac Toe Game](/problems/find-winner-on-a-tic-tac-toe-game) | Easy | Array |\n| 1276 | [Number of Burgers with No Waste of Ingredients](/problems/number-of-burgers-with-no-waste-of-ingredients) | Medium | Math, greedy |\n| 1277 | [Count Square Submatrices with All Ones](/problems/count-square-submatrices-with-all-ones) | Medium | Array, Dynamic Programming |\n| 1313 | [Decompress Run-Length Encoded List](/problems/decompress-run-length-encoded-list) | Easy | Array |\n| 1314 | [Matrix Block Sum](/problems/matrix-block-sum) | Medium | Dynamic programming |\n| 1317 | [Convert Integer to the Sum of Two No-Zero Integers](/problems/convert-integer-to-the-sum-of-two-no-zero-integers) | Easy | Math |\n| 1342 | [Number of Steps to Reduce a Number to Zero](/problems/number-of-steps-to-reduce-a-number-to-zero) | Easy | Bit manipulation |\n| 1343 | [Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold](/problems/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold) | Medium | Array |\n| 1344 | [Angle Between Hands of a Clock](/problems/angle-between-hands-of-a-clock) | Medium | Math |\n| 1346 | [Check If N and Its Double Exist](/problems/check-if-n-and-its-double-exist) | Easy | Array |\n| 1347 | [Minimum Number of Steps to Make Two Strings Anagram](/problems/minimum-number-of-steps-to-make-two-strings-anagram) | Medium | String |\n| 1348 | [Tweet Counts Per Frequency](/problems/tweet-counts-per-frequency) | Medium | Design |\n| 1356 | [Sort Integers by The Number of 1 Bits](/problems/sort-integers-by-the-number-of-1-bits) | Easy | Sort, bit manipulation |\n| 1357 | [Apply Discount Every n Orders](/problems/apply-discount-every-n-orders) | Medium | Design |\n| 1358 | [Number of Substrings Containing All Three Characters](/problems/number-of-substrings-containing-all-three-characters) | Medium | String |\n| 1360 | [Number of Days Between Two Dates](/problems/number-of-days-between-two-dates) | Easy | - |\n| 1361 | [Validate Binary Tree Nodes](/problems/validate-binary-tree-nodes) | Medium | Graph |\n| 1362 | [Closest Divisors](/problems/closest-divisors) | Medium | Math |\n| 1370 | [Increasing Decreasing String](/problems/increasing-decreasing-string) | Easy | String, sort |\n| 1374 | [Generate a String With Characters That Have Odd Counts](/problems/generate-a-string-with-characters-that-have-odd-counts) | Easy | String |\n| 1385 | [Find the Distance Value Between Two Arrays](/problems/find-the-distance-value-between-two-arrays) | Easy | Array |\n| 1386 | [Cinema Seat Allocation](/problems/cinema-seat-allocation) | Medium | Array, Greedy |\n| 1387 | [Sort Integers by The Power Value](/problems/sort-integers-by-the-power-value) | Medium | Sort, Graph |\n| 1389 | [Create Target Array in the Given Order](/problems/create-target-array-in-the-given-order) | Easy | Array |\n| 1390 | [Four Divisors](/problems/four-divisors) | Medium | Math |\n| 1401 | [Circle and Rectangle Overlapping](/problems/circle-and-rectangle-overlapping) | Medium | Geometry |\n| 1404 | [Number of Steps to Reduce a Number in Binary Representation to One](/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-one) | Medium | String, Bit Manipulation |\n| 1413 | [Minimum Value to Get Positive Step by Step Sum](/problems/minimum-value-to-get-positive-step-by-step-sum) | Easy | Array |\n| 1417 | [Reformat The String](/problems/reformat-the-string) | Easy | String |\n| 1418 | [Display Table of Food Orders in a Restaurant](/problems/display-table-of-food-orders-in-a-restaurant) | Medium | Hash Table |\n| 1419 | [Minimum Number of Frogs Croaking](/problems/minimum-number-of-frogs-croaking) | Medium | String |\n| 1426 | [Counting Elements](/problem/counting-elements) | - | - |\n| 1427 | [Perform String Shifts](/problems/perform-string-shifts) | - | - |\n| 1428 | [Leftmost Column with at Least a One](/problems/leftmost-column-with-at-least-a-one) | - | - |\n| 1429 | [First Unique Number](/problems/first-unique-number) | - | - |\n| 1430 | [Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree](/problems/check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree) | - | - |\n| 1475 | [Final Prices With a Special Discount in a Shop](/problems/final-prices-with-a-special-discount-in-a-shop) | Easy | Array |\n| 1476 | [Subrectangle Queries](/problems/subrectangle-queries) | Medium | Array |\n| 1480 | [Running Sum of 1d Array](/problems/running-sum-of-1d-array) | Easy | Array |\n| 1481 | [Least Number of Unique Integers after K Removals](/problems/least-number-of-unique-integers-after-k-removals) | Medium | Array, Sort |\n| 1491 | [Average Salary Excluding the Minimum and Maximum Salary](/problems/average-salary-excluding-the-minimum-and-maximum-salary) | Easy | Array, Sort |\n| 1492 | [The kth Factor of n](/problems/the-kth-factor-of-n) | Medium | Math |\n| 1493 | [Longest Subarray of 1's After Deleting One Element](/problems/longest-subarray-of-1s-after-deleting-one-element) | Medium | Array |\n| 1572 | [Matrix Diagonal Sum](/problems/matrix-diagonal-sum) | Easy | Array |\n| 1574 | [Shortest Subarray to be Removed to Make Array Sorted](/problems/shortest-subarray-to-be-removed-to-make-array-sorted) | Medium | Array, Binary Search |\n| 1576 | [Replace All ?'s to Avoid Consecutive Repeating Characters](/problems/replace-all-s-to-avoid-consecutive-repeating-characters) | Easy | String |\n| 1577 | [Number of Ways Where Square of Number Is Equal to Product of Two Numbers](/problems/number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers) | Medium | Hash Table, Math |\n| 1578 | [Minimum Deletion Cost to Avoid Repeating Letters](/problems/minimum-deletion-cost-to-avoid-repeating-letters) | Medium | Greedy |\n| 1603 | [Design Parking System](/problems/design-parking-system) | Easy | Design |\n| 1604 | [Alert Using Same Key-Card Three or More Times in a One Hour Period](/problems/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period) | Medium | String, Ordered Map |\n| 1608 | [Special Array With X Elements Greater Than or Equal X](/problems/special-array-with-x-elements-greater-than-or-equal-x) | Easy | Array |\n| 1609 | [Even Odd Tree](/problems/even-odd-tree) | Medium | Tree |\n\n## Questions / Issues\n\nIf you have any question, feel free to open a GitHub issue and reach out to me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecgan%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecgan%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecgan%2Fleetcode/lists"}