A collection of LeetCode solutions implemented in TypeScript. This repository contains my solutions to various LeetCode problems, organized by problem ID and name.
Each problem is organized in its own directory following the format:
{problem_id}-{problem_name}/
├── README.md # Problem description and constraints
├── Solution.md # Solution explanation and approach
└── {problem_id}-{problem_name}.ts # TypeScript solution implementation
- Navigate to the problem directory you're interested in
- Read the
README.mdfor problem description and constraints - Check the
Solution.mdfor detailed solution explanation, approach, and complexity analysis - Review the
{problem_id}-{problem_name}.tsfile for the TypeScript implementation
📋 Arrays
Prefix Sum & Subarray/Product Problems
- [0713. Subarray Product Less Than K](./0713-subarray-product-less-than-k/) - [2348. Number Of Zero Filled Subarrays](./2348-number-of-zero-filled-subarrays/) - [3349. Adjacent Increasing Subarrays Detection I](./3349-adjacent-increasing-subarrays-detection-i/) - [3350. Adjacent Increasing Subarrays Detection Ii](./3350-adjacent-increasing-subarrays-detection-ii/) - [3539. Find Sum of Array Product of Magical Sequences](./3539-find-sum-of-array-product-of-magical-sequences/) - [3542. Minimum Operations to Convert All Elements to Zero](./3542-minimum-operations-to-convert-all-elements-to-zero/) - [3587. Minimum Adjacent Swaps To Alternate Parity](./3587-minimum-adjacent-swaps-to-alternate-parity/) - [3599. Partition Array To Minimize Xor](./3599-partition-array-to-minimize-xor/) - [3689. Maximum Total Subarray Value I](./3689-maximum-total-subarray-value-i/) - [3719. Longest Balanced Subarray I](./3719-longest-balanced-subarray-i/)Sorting, Pairing & Removal
- [0014. Longest Common Prefix](./0014-longest-common-prefix/) - [0049. Group Anagrams](./0049-group-anagrams/) - [0073. Set Matrix Zeroes](./0073-set-matrix-zeroes/) - [0075. Sort Colors](./0075-sort-colors/) - [0869. Reordered Power Of 2](./0869-reordered-power-of-2/) - [0976. Largest Perimeter Triangle](./0976-largest-perimeter-triangle/) - [1233. Remove Sub Folders From The Filesystem](./1233-remove-sub-folders-from-the-filesystem/) - [2014. Longest Subsequence Repeated K Times](./2014-longest-subsequence-repeated-k-times/) - [2099. Find Subsequence Of Length K With The Largest Sum](./2099-find-subsequence-of-length-k-with-the-largest-sum/) - [2300. Successful Pairs Of Spells And Potions](./2300-successful-pairs-of-spells-and-potions/) - [2327. Number Of People Aware Of A Secret](./2327-number-of-people-aware-of-a-secret/) - [2402. Meeting Rooms Iii](./2402-meeting-rooms-iii/) - [2406. Divide Intervals Into Minimum Number Of Groups](./2406-divide-intervals-into-minimum-number-of-groups/) - [2410. Maximum Matching Of Players With Trainers](./2410-maximum-matching-of-players-with-trainers/) - [2616. Minimize The Maximum Difference Of Pairs](./2616-minimize-the-maximum-difference-of-pairs/) - [3362. Zero Array Transformation Iii](./3362-zero-array-transformation-iii/) - [3397. Maximum Number Of Distinct Elements After Operations](./3397-maximum-number-of-distinct-elements-after-operations/) - [3424. Minimum Cost To Make Arrays Identical](./3424-minimum-cost-to-make-arrays-identical/) - [3507. Minimum Pair Removal to Sort Array I](./3507-minimum-pair-removal-to-sort-array-i/) - [3510. Minimum Pair Removal to Sort Array II](./3510-minimum-pair-removal-to-sort-array-ii/) - [3536. Maximum Product of Two Digits](./3536-maximum-product-of-two-digits/) - [3538. Merge Operations For Minimum Travel Time](./3538-merge-operations-for-minimum-travel-time/) - [3551. Minimum Swaps To Sort By Digit Sum](./3551-minimum-swaps-to-sort-by-digit-sum/) - [3572. Maximize Ysum By Picking A Triplet Of Distinct Xvalues](./3572-maximize-ysum-by-picking-a-triplet-of-distinct-xvalues/) - [3644. Maximum K To Sort A Permutation](./3644-maximum-k-to-sort-a-permutation/) - [3649. Number Of Perfect Pairs](./3649-number-of-perfect-pairs/) - [3668. Restore Finishing Order](./3668-restore-finishing-order/) - [3727. Maximum Alternating Sum Of Squares](./3727-maximum-alternating-sum-of-squares/)Counting, Frequency & Miscellaneous
Counting & Frequency
- 1128. Number Of Equivalent Domino Pairs
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1504. Count Submatrices With All Ones
- 1733. Minimum Number Of People To Teach
- 1751. Maximum Number Of Events That Can Be Attended Ii
- 2210. Count Hills And Valleys In An Array
- 2406. Divide Intervals Into Minimum Number of Groups
- 2409. Count Days Spent Together
- 2549. Count Distinct Numbers On Board
- 3005. Count Elements With Maximum Frequency
- 3343. Count Number Of Balanced Permutations
- 3346. Maximum Frequency Of An Element After Performing Operations I
- 3347. Maximum Frequency Of An Element After Performing Operations Ii
- 3405. Count The Number Of Arrays With K Matching Adjacent Elements
- 3442. Maximum Difference Between Even And Odd Frequency I
- 3448. Count Substrings Divisible By Last Digit
- 3514. Number Of Unique Xor Triplets Ii
- 3527. Find The Most Common Response
- 3529. Count Cells in Overlapping Horizontal and Vertical Substrings
- 3531. Count Covered Buildings
- 3569. Maximize Count Of Distinct Primes After Split
- 3577. Count The Number Of Computer Unlocking Permutations
- 3583. Count Special Triplets
- 3589. Count Prime Gap Balanced Subarrays
- 3591. Check If Any Element Has Prime Frequency
- 3649. Number Of Perfect Pairs
- 3663. Find The Least Frequent Digit
- 3692. Majority Frequency Characters
- 3704. Count No Zero Pairs That Sum To N
- 3729. Count Distinct Subarrays Divisible By K In Sorted Array
Operations & Transformations
- 1290. Convert Binary Number in a Linked List to Integer
- 1298. Maximum Candies You Can Get from Boxes
- 1323. Maximum 69 Number
- 1695. Maximum Erasure Value
- 1717. Maximum Score From Removing Substrings
- 1792. Maximum Average Pass Ratio
- 2016. Maximum Difference Between Increasing Elements
- 2163. Minimum Difference in Sums After Removal of Elements
- 2294. Partition Array Such That Maximum Difference Is K
- 2410. Maximum Matching of Players With Trainers
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2566. Maximum Difference by Remapping a Digit
- 2616. Minimize the Maximum Difference of Pairs
- 2918. Minimum Equal Sum of Two Arrays After Replacing Zeros
- 3085. Minimum Deletions To Make String K Special
- 3201. Find The Maximum Length Of Valid Subsequence I
- 3202. Find The Maximum Length Of Valid Subsequence Ii
- 3355. Zero Array Transformation I
- 3411. Maximum Subarray with Equal Products
- 3423. Maximum Difference Between Adjacent Elements In A Circular Array
- 3424. Minimum Cost to Make Arrays Identical
- 3439. Reschedule Meetings for Maximum Free Time I
- 3440. Reschedule Meetings for Maximum Free Time II
- 3480. Maximize Subarrays After Removing One Conflicting Pair
- 3487. Maximum Unique Subarray Sum After Deletion
- 3494. Find The Minimum Amount Of Time To Brew Potions
- 3495. Minimum Operations To Make Array Elements Zero
- 3502. Minimum Cost To Reach Every Position
- 3505. Minimum Operations To Make Elements Within K Subarrays Equal
- 3509. Maximum Product Of Subsequences With An Alternating Sum Equal To K
- 3512. Minimum Operations to Make Array Sum Divisible by K
- 3542. Minimum Operations To Convert All Elements To Zero
- 3543. Maximum Weighted K Edge Path
- 3545. Minimum Deletions For At Most K Distinct Characters
- 3567. Minimum Absolute Difference in Sliding Submatrix
- 3568. Minimum Moves To Clean The Classroom
- 3572. Maximize Y Sum by Picking a Triplet of Distinct X Values
- 3576. Transform Array To All Equal Elements
- 3584. Maximum Product of First and Last Elements of a Subsequence
- 3587. Minimum Adjacent Swaps to Alternate Parity
- 3588. Find Maximum Area Of A Triangle
- 3605. Minimum Stability Factor of Array
- 3609. Minimum Moves To Reach Target In Grid
- 3644. Maximum K To Sort A Permutation
- 3674. Minimum Operations To Equalize Array
- 3679. Minimum Discards To Balance Inventory
- 3689. Maximum Total Subarray Value I
- 3698. Split Array With Minimum Difference
- 3724. Minimum Operations To Transform Array
General Array Problems
General Array Problems
- 0001. Two Sum
- 0002. Add Two Numbers
- 0118. Pascal's Triangle
- 0166. Fraction To Recurring Decimal
- 0440. K Th Smallest In Lexicographical Order
- 0594. Longest Harmonious Subsequence
- 0679. 24 Game
- 0767. Reorganize String
- 0808. Soup Servings
- 0904. Fruit Into Baskets
- 1304. Find N Unique Integers Sum Up To Zero
- 1394. Find Lucky Integer In An Array
- 1488. Avoid Flood In The City
- 1518. Water Bottles
- 1550. Three Consecutive Odds
- 1865. Finding Pairs With a Certain Sum
- 1900. The Earliest And Latest Rounds Where Players Compete
- 1920. Build Array from Permutation
- 1930. Unique Length 3 Palindromic Subsequences
- 1931. Painting A Grid With Three Different Colors
- 2040. Kth Smallest Product of Two Sorted Arrays
- 2048. Next Greater Numerically Balanced Number
- 2081. Sum of k-Mirror Numbers
- 2094. Finding 3-Digit Even Numbers
- 2115. Find All Possible Recipes From Given Supplies
- 2131. Longest Palindrome By Concatenating Two Letter Words
- 2138. Divide a String Into Groups of Size k
- 2200. Find All K-Distant Indices in an Array
- 2235. Add Two Integers
- 2300. Successful Pairs Of Spells And Potions
- 2402. Meeting Rooms III
- 2425. Bitwise XOR of All Pairings
- 2561. Rearranging Fruits
- 2894. Divisible and Non-divisible Sums Difference
- 2900. Longest Unequal Adjacent Groups Subsequence I
- 2901. Longest Unequal Adjacent Groups Subsequence Ii
- 2966. Divide Array Into Arrays With Max Difference
- 3100. Water Bottles Ii
- 3438. Find Valid Pair Of Adjacent Digits In String
- 3447. Assign Elements To Groups With Constraints
- 3479. Fruits into Baskets III
- 3508. Implement Router
- 3516. Find Closest Person
- 3528. Unit Conversion I
- 3533. Concatenated Divisibility
- 3534. Path Existence Queries In A Graph Ii
- 3537. Fill a Special Grid
- 3539. Find Sum Of Array Product Of Magical Sequences
- 3541. Find Most Frequent Vowel And Consonant
- 3544. Subtree Inversion Sum
- 3566. Partition Array into Two Equal Product Subsets
- 3573. Best Time To Buy And Sell Stock V
- 3590. Kth Smallest Path Xor Sum
- 3592. Inverse Coin Change
- 3606. Coupon Code Validator
- 3664. Two Letter Card Game
- 3668. Restore Finishing Order
- 3669. Balanced K Factor Decomposition
- 3694. Distinct Points Reachable After Substring Removal
- 3701. Compute Alternating Sum
- 3718. Smallest Missing Multiple Of K
- 3728. Stable Subarrays With Equal Boundary And Interior Sum
Matrix Problems
- [0036. Valid Sudoku](./0036-valid-sudoku/) - [0054. Spiral Matrix](./0054-spiral-matrix/) - [0059. Spiral Matrix II](./0059-spiral-matrix-ii/) - [0073. Set Matrix Zeroes](./0073-set-matrix-zeroes/) - [0200. Number Of Islands](./0200-number-of-islands/) - [0407. Trapping Rain Water Ii](./0407-trapping-rain-water-ii/) - [0417. Pacific Atlantic Water Flow](./0417-pacific-atlantic-water-flow/) - [0778. Swim In Rising Water](./0778-swim-in-rising-water/) - [0885. Spiral Matrix III](./0885-spiral-matrix-iii/) - [2326. Spiral Matrix IV](./2326-spiral-matrix-iv/) - [3000. Maximum Area Of Longest Diagonal Rectangle](./3000-maximum-area-of-longest-diagonal-rectangle/) - [3195. Find The Minimum Area To Cover All Ones I](./3195-find-the-minimum-area-to-cover-all-ones-i/) - [3341. Find Minimum Time To Reach Last Room I](./3341-find-minimum-time-to-reach-last-room-i/) - [3342. Find Minimum Time To Reach Last Room Ii](./3342-find-minimum-time-to-reach-last-room-ii/) - [3363. Find The Maximum Number Of Fruits Collected](./3363-find-the-maximum-number-of-fruits-collected/) - [3426. Manhattan Distances Of All Arrangements Of Pieces](./3426-manhattan-distances-of-all-arrangements-of-pieces/) - [3446. Sort Matrix by Diagonals](./3446-sort-matrix-by-diagonals/) - [3459. Length Of Longest V Shaped Diagonal Segment](./3459-length-of-longest-v-shaped-diagonal-segment/) - [3529. Count Cells In Overlapping Horizontal And Vertical Substrings](./3529-count-cells-in-overlapping-horizontal-and-vertical-substrings/) - [3537. Fill A Special Grid](./3537-fill-a-special-grid/) - [3552. Grid Teleportation Traversal](./3552-grid-teleportation-traversal/) - [3567. Minimum Absolute Difference In Sliding Submatrix](./3567-minimum-absolute-difference-in-sliding-submatrix/) - [3603. Minimum Cost Path With Alternating Directions Ii](./3603-minimum-cost-path-with-alternating-directions-ii/) - [3643. Flip Square Submatrix Vertically](./3643-flip-square-submatrix-vertically/)Two-Pointer & Sliding Window
- [0011. Container With Most Water](./0011-container-with-most-water/) - [0013. Roman To Integer](./0013-roman-to-integer/) - [0015. 3Sum](./0015-3sum/) - [0120. Triangle](./0120-triangle/) - [0135. Candy](./0135-candy/) - [0165. Compare Version Numbers](./0165-compare-version-numbers/) - [0326. Power Of Three](./0326-power-of-three/) - [0837. New 21 Game](./0837-new-21-game/) - [0904. Fruit Into Baskets](./0904-fruit-into-baskets/) - [1249. Minimum Remove to Make Valid Parentheses](./1249-minimum-remove-to-make-valid-parentheses/) - [1353. Maximum Number Of Events That Can Be Attended](./1353-maximum-number-of-events-that-can-be-attended/) - [1493. Longest Subarray Of 1s After Deleting One Element](./1493-longest-subarray-of-1s-after-deleting-one-element/) - [1498. Number Of Subsequences That Satisfy The Given Sum Condition](./1498-number-of-subsequences-that-satisfy-the-given-sum-condition/) - [1695. Maximum Erasure Value](./1695-maximum-erasure-value/) - [1751. Maximum Number Of Events That Can Be Attended Ii](./1751-maximum-number-of-events-that-can-be-attended-ii/) - [2040. Kth Smallest Product Of Two Sorted Arrays](./2040-kth-smallest-product-of-two-sorted-arrays/) - [2163. Minimum Difference In Sums After Removal Of Elements](./2163-minimum-difference-in-sums-after-removal-of-elements/) - [2438. Range Product Queries Of Powers](./2438-range-product-queries-of-powers/) - [3021. Alice And Bob Playing Flower Game](./3021-alice-and-bob-playing-flower-game/) - [3027. Find The Number Of Ways To Place People Ii](./3027-find-the-number-of-ways-to-place-people-ii/) - [3197. Find The Minimum Area To Cover All Ones Ii](./3197-find-the-minimum-area-to-cover-all-ones-ii/) - [3439. Reschedule Meetings For Maximum Free Time I](./3439-reschedule-meetings-for-maximum-free-time-i/) - [3477. Fruits Into Baskets Ii](./3477-fruits-into-baskets-ii/) - [3479. Fruits Into Baskets Iii](./3479-fruits-into-baskets-iii/) - [3608. Minimum Time For K Connected Components](./3608-minimum-time-for-k-connected-components/) - [3690. Split And Merge Array Transformation](./3690-split-and-merge-array-transformation/) - [3698. Split Array With Minimum Difference](./3698-split-array-with-minimum-difference/) - [3727. Maximum Alternating Sum Of Squares](./3727-maximum-alternating-sum-of-squares/)Dynamic Programming
- [0790. Domino and Tromino Tiling](./0790-domino-and-tromino-tiling/) - [1039. Minimum Score Triangulation Of Polygon](./1039-minimum-score-triangulation-of-polygon/) - [1432. Max Difference You Can Get From Changing an Integer](./1432-max-difference-you-can-get-from-changing-an-integer/) - [2787. Ways To Express An Integer As Sum Of Powers](./2787-ways-to-express-an-integer-as-sum-of-powers/) - [3202. Find The Maximum Length Of Valid Subsequence Ii](./3202-find-the-maximum-length-of-valid-subsequence-ii/) - [3573. Best Time To Buy And Sell Stock V](./3573-best-time-to-buy-and-sell-stock-v/) - [3592. Inverse Coin Change](./3592-inverse-coin-change/) - [3652. Best Time To Buy And Sell Stock Using Strategy](./3652-best-time-to-buy-and-sell-stock-using-strategy/) - [3693. Climbing Stairs Ii](./3693-climbing-stairs-ii/)🔤 Strings
Lexicographical & Ordering
- 0386. Lexicographical Numbers
- 1061. Lexicographically Smallest Equivalent String
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 3170. Lexicographically Minimum String After Removing Stars
- 3403. Find the Lexicographically Largest String from the Box I
- 3722. Lexicographically Smallest String After Reverse
String Transformations & Operations
- 1768. Merge Strings Alternately
- 2138. Divide A String Into Groups Of Size K
- 3330. Find the Original Typed String I
- 3333. Find the Original Typed String II
- 3335. Total Characters in String After Transformations I
- 3337. Total Characters in String After Transformations II
- 3675. Minimum Operations To Transform String
Palindromes & Subsequences
- 1930. Unique Length-3 Palindromic Subsequences
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2311. Longest Binary Subsequence Less Than or Equal to K
- 3504. Longest Palindrome After Substring Concatenation II
- 3517. Smallest Palindromic Rearrangement I
- 3702. Longest Subsequence With Non Zero Bitwise Xor
Vowels & Character Patterns
String Matching & Substrings
- 1717. Maximum Score From Removing Substrings
- 3085. Minimum Deletions to Make String K-Special
- 3448. Count Substrings Divisible by Last Digit
- 3545. Minimum Deletions for at Most K Distinct Characters
- 3557. Find Maximum Number of Non-Intersecting Substrings
- 3598. Longest Common Prefix Between Adjacent Strings After Removals
- 3703. Remove K Balanced Substrings
- 3707. Equal Score Substrings
Digit & Number Strings
- 1323. Maximum 69 Number
- 2264. Largest 3 Same Digit Number In String
- 2566. Maximum Difference By Remapping A Digit
- 3438. Find Valid Pair of Adjacent Digits in String
- 3461. Check If Digits Are Equal In String After Operations I
- 3550. Smallest Index with Digit Sum Equal to Index
- 3551. Minimum Swaps to Sort by Digit Sum
- 3556. Sum of Largest Prime Substrings
- 3697. Compute Decimal Representation
- 3720. Lexicographically Smallest Permutation Greater Than Target
- 3723. Maximize Sum Of Squares Of Digits
- 3726. Remove Zeros In Decimal Representation
String Games & Encoding
File & Path Operations
Validation & Parsing
Strings & Palindromes
- 0009. Palindrome Number
- 0020. Valid Parentheses
- 0165. Compare Version Numbers
- 0767. Reorganize String
- 1935. Maximum Number Of Words You Can Type
- 2014. Longest Subsequence Repeated k Times
- 2081. Sum Of K Mirror Numbers
- 2264. Largest 3 Same Digit Number In String
- 3136. Valid Word
- 3304. Find the K-th Character in String Game I
- 3307. Find the K-th Character in String Game II
- 3440. Reschedule Meetings For Maximum Free Time Ii
- 3503. Longest Palindrome After Substring Concatenation I
- 3504. Longest Palindrome After Substring Concatenation II
- 3517. Smallest Palindromic Rearrangement I
- 3598. Longest Common Prefix Between Adjacent Strings After Removals
- 3606. Coupon Code Validator
- 3664. Two Letter Card Game
🌳 Trees & Graphs
- 0124. Binary Tree Maximum Path Sum
- 0199. Binary Tree Right Side View
- 0200. Number of Islands
- 0386. Lexicographical Numbers
- 0543. Diameter of Binary Tree
- 0909. Snakes and Ladders
- 1353. Maximum Number of Events That Can Be Attended
- 1857. Largest Color Value In A Directed Graph
- 2322. Minimum Score After Removals on a Tree
- 2359. Find Closest Node to Given Two Nodes
- 2561. Rearranging Fruits
- 3068. Find the Maximum Sum of Node Values
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3372. Maximize the Number of Target Nodes After Connecting Trees I
- 3373. Maximize the Number of Target Nodes After Connecting Trees II
- 3425. Longest Special Path
- 3426. Manhattan Distances of All Arrangements of Pieces
- 3515. Shortest Path in a Weighted Tree
- 3516. Find Closest Person
- 3530. Maximum Profit from Valid Topological Order in DAG
- 3532. Path Existence Queries in a Graph I
- 3533. Concatenated Divisibility
- 3534. Path Existence Queries in a Graph II
- 3538. Merge Operations for Minimum Travel Time
- 3543. Maximum Weighted K Edge Path
- 3544. Subtree Inversion Sum
- 3558. Number of Ways to Assign Edge Weights I
- 3585. Find Weighted Median Node in Tree
- 3590. Kth Smallest Path XOR Sum
- 3593. Minimum Increments to Equalize Leaf Paths
- 3594. Minimum Time to Transport All Individuals
- 3599. Partition Array to Minimize XOR
- 3600. Maximize Spanning Tree Stability with Upgrades
- 3603. Minimum Cost Path with Alternating Directions II
- 3604. Minimum Time to Reach Destination in Directed Graph
- 3607. Power Grid Maintenance
- 3608. Minimum Time for K Connected Components
🔍 Hash Tables & Dictionaries
- 0146. LRU Cache
- 0166. Fraction To Recurring Decimal
- 0966. Vowel Spellchecker
- 1366. Rank Teams by Votes
- 1394. Find Lucky Integer in an Array
- 2115. Find All Possible Recipes from Given Supplies
- 3442. Maximum Difference Between Even and Odd Frequency I
- 3445. Maximum Difference Between Even and Odd Frequency II
- 3477. Fruits into Baskets II
🔢 Bit Manipulation
- 0231. Power Of Two
- 0342. Power Of Four
- 0869. Reordered Power Of 2
- 1716. Calculate Money In Leetcode Bank
- 1935. Maximum Number Of Words You Can Type
- 2311. Longest Binary Subsequence Less Than Or Equal To K
- 2411. Smallest Subarrays With Maximum Bitwise Or
- 2425. Bitwise Xor Of All Pairings
- 2918. Minimum Equal Sum Of Two Arrays After Replacing Zeros
- 3003. Maximize The Number Of Partitions After Operations
- 3349. Adjacent Increasing Subarrays Detection I
- 3513. Number of Unique XOR Triplets I
- 3514. Number of Unique XOR Triplets II
- 3530. Maximum Profit From Valid Topological Order In Dag
- 3566. Partition Array Into Two Equal Product Subsets
- 3568. Minimum Moves To Clean The Classroom
- 3590. Kth Smallest Path Xor Sum
- 3594. Minimum Time To Transport All Individuals
- 3599. Partition Array To Minimize Xor
- 3604. Minimum Time To Reach Destination In Directed Graph
- 3605. Minimum Stability Factor Of Array
- 3688. Bitwise Or Of Even Numbers In An Array
- 3702. Longest Subsequence With Non Zero Bitwise Xor
🔢 Pure Math
- 0002. Add Two Numbers
- 0118. Pascals Triangle
- 0120. Triangle
- 0812. Largest Triangle Area
- 0909. Snakes And Ladders
- 1304. Find N Unique Integers Sum Up To Zero
- 1317. Convert Integer To The Sum Of Two No Zero Integers
- 2081. Sum Of K Mirror Numbers
- 2163. Minimum Difference In Sums After Removal Of Elements
- 2197. Replace Non Coprime Numbers In Array
- 2221. Find Triangular Sum Of An Array
- 2235. Add Two Integers
- 2787. Ways To Express An Integer As Sum Of Powers
- 2918. Minimum Equal Sum Of Two Arrays After Replacing Zeros
- 3068. Find The Maximum Sum Of Node Values
- 3411. Maximum Subarray With Equal Products
- 3443. Maximum Manhattan Distance After K Changes
- 3487. Maximum Unique Subarray Sum After Deletion
- 3509. Maximum Product of Subsequences with an Alternating Sum Equal to K
- 3512. Minimum Operations To Make Array Sum Divisible By K
- 3533. Concatenated Divisibility
- 3539. Find Sum Of Array Product Of Magical Sequences
- 3556. Sum Of Largest Prime Substrings
- 3572. Maximize Ysum By Picking A Triplet Of Distinct Xvalues
- 3574. Maximize Subarray Gcd Score
- 3588. Find Maximum Area Of A Triangle
- 3589. Count Prime Gap Balanced Subarrays
- 3591. Check If Any Element Has Prime Frequency
- 3602. Hexadecimal And Hexatrigesimal Conversion
- 3701. Compute Alternating Sum
💾 System Design
- 0146. Lru Cache
- 1290. Convert Binary Number In A Linked List To Integer
- 1792. Maximum Average Pass Ratio
- 1865. Finding Pairs With A Certain Sum
- 1912. Design Movie Rental System
- 2043. Simple Bank System
- 2353. Design A Food Rating System
- 3408. Design Task Manager
- 3484. Design Spreadsheet
- 3508. Implement Router
While this is primarily my personal collection of solutions, I welcome any suggestions or improvements. Feel free to:
- Report bugs or issues
- Suggest optimizations
- Share alternative solutions
This project is licensed under the MIT License - see the LICENSE file for details.
Solutions are automatically synced using LeetHub 3.0, a Chrome extension that automatically pushes your LeetCode solutions to GitHub.