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 & Strings
- 0002. Add Two Numbers
- 0015. 3Sum
- 0049. Group Anagrams
- 0054. Spiral Matrix
- 0059. Spiral Matrix II
- 0713. Subarray Product Less Than K
- 0885. Spiral Matrix III
- 1249. Minimum Remove to Make Valid Parentheses
- 1768. Merge Strings Alternately
- 1930. Unique Length-3 Palindromic Subsequences
- 2235. Add Two Integers
- 2326. Spiral Matrix IV
- 2425. Bitwise XOR of All Pairings
- 2667. Create Hello World Function
- 3306. Count of Substrings Containing Every Vowel and K Consonants II
- 3411. Maximum Subarray with Equal Products
- 3423. Maximum Difference Between Adjacent Elements in a Circular Array
- 3424. Minimum Cost to Make Arrays Identical
- 3438. Find Valid Pair of Adjacent Digits in String
- 3446. Sort Matrix by Diagonals
- 3448. Count Substrings Divisible by Last Digit
- 3502. Minimum Cost to Reach Every Position
- 3505. Minimum Operations to Make Elements Within K Subarrays Equal
- 3507. Minimum Pair Removal to Sort Array I
- 3510. Minimum Pair Removal to Sort Array II
- 3512. Minimum Operations to Make Array Sum Divisible by K
- 3513. Number of Unique XOR Triplets I
- 3514. Number of Unique XOR Triplets II
- 3516. Find Closest Person
- 3517. Smallest Palindromic Rearrangement I
π³ Trees & Graphs
π Hash Tables & Dictionaries
π Strings & Palindromes
π’ Math & Bit Manipulation
πΎ System Design
π SQL
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.