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
└── {problem_id}-{problem_name}.ts # TypeScript solution implementation
- Navigate to the problem directory you're interested in
- Read the
README.md
for problem description and constraints - Check the
{problem_id}-{problem_name}.ts
file for the TypeScript implementation
📋 Arrays
- 0713. Subarray Product Less Than K
- 3502. Minimum Cost to Reach Every Position
- 3539. Find Sum of Array Product of Magical Sequences
- 3542. Minimum Operations to Convert All Elements to Zero
- 3507. Minimum Pair Removal to Sort Array I
- 3510. Minimum Pair Removal to Sort Array II
- 3536. Maximum Product of Two Digits
- 3538. Merge Operations for Minimum Travel Time
- 0002. Add Two Numbers
- 2425. Bitwise XOR of All Pairings
- 2894. Divisible and Non-divisible Sums Difference
- 3505. Minimum Operations to Make Elements Within K Subarrays Equal
- 3527. Find the Most Common Response
- 3528. Unit Conversion I
- 3529. Count Cells in Overlapping Horizontal and Vertical Substrings
- 3530. Maximum Profit from Valid Topological Order in DAG
- 3531. Count Covered Buildings
- 3533. Concatenated Divisibility
- 3537. Fill a Special Grid
- 3543. Maximum Weighted K Edge Path
- 3544. Subtree Inversion Sum
🔤 Strings
- 1768. Merge Strings Alternately
- 1930. Unique Length-3 Palindromic Subsequences
- 2667. Create Hello World Function
- 3306. Count of Substrings Containing Every Vowel and K Consonants II
- 3438. Find Valid Pair of Adjacent Digits in String
- 3448. Count Substrings Divisible by Last Digit
- 3516. Find Closest Person
- 3517. Smallest Palindromic Rearrangement I
- 3545. Minimum Deletions for at Most K Distinct Characters
- 3550. Smallest Index with Digit Sum Equal to Index
- 3551. Minimum Swaps to Sort by Digit Sum
- 3552. Grid Teleportation Traversal
- 3556. Sum of Largest Prime Substrings
- 3557. Find Maximum Number of Non-Intersecting Substrings
🌳 Trees & Graphs
- 0124. Binary Tree Maximum Path Sum
- 0199. Binary Tree Right Side View
- 0200. Number of Islands
- 0543. Diameter of Binary Tree
- 0909. Snakes and Ladders
- 1857. Largest Color Value in a Directed Graph
- 2359. Find Closest Node to Given Two Nodes
- 3372. Maximize the Number of Target Nodes After Connecting Trees I
- 3373. Maximize the Number of Target Nodes After Connecting Trees II
- 3515. Shortest Path in a Weighted Tree
- 3532. Path Existence Queries in a Graph I
- 3534. Path Existence Queries in a Graph II
- 3558. Number of Ways to Assign Edge Weights I
🔍 Hash Tables & Dictionaries
🔢 Math & Bit Manipulation
💾 System Design
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.