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
- 0713. Subarray Product Less Than K
- 2425. Bitwise XOR of All Pairings
- 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
- 3527. Maximum Sum of Non-Overlapping Subarrays
- 3528. Minimum Cost to Rearrange Array
- 3529. Count Subarrays with Median K
- 3530. Maximum Product of Splitted Subarrays
- 3531. Count Covered Buildings
- 3532. Minimum Steps to Make Array Increasing
- 3533. Maximum XOR of Two Numbers in an Array
- 3534. Minimum Cost to Split Array
- 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
π³ 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.