This repository contains solutions for LeetCode problems implemented in TypeScript (JavaScript) and Python.
The purpose of this repository is to provide clear, efficient, and well-explained solutions for various LeetCode problems. Each solution is accompanied by detailed comments that explain the logic and approach used to solve the problem.
- TypeScript
- JavaScript
- Python
- Java
Each problem has its own directory, and within each problem's directory, you will find a solution file for both TypeScript and JavaScript. Feel free to explore and use these solutions to understand and solve LeetCode problems more effectively.
Contributions are welcome! If you have a better solution or a solution to a problem that is not currently in the repository, feel free to make a pull request.
| Problem Name | Difficulty |
|---|---|
| 1536-minimum-swaps-to-arrange-a-binary-grid | Medium |
| 1727-largest-submatrix-with-rearrangements | Medium |
| 3296-minimum-number-of-seconds-to-make-mountain-height-zero | Medium |
| 3600-maximize-spanning-tree-stability-with-upgrades | Hard |
| Problem Name | Difficulty |
|---|---|
| 1545-find-kth-bit-in-nth-binary-string | Medium |
| Problem Name | Difficulty |
|---|---|
| 1545-find-kth-bit-in-nth-binary-string | Medium |
| Problem Name | Difficulty |
|---|---|
| 1888-minimum-number-of-flips-to-make-the-binary-string-alternating | Medium |
| 3129-find-all-possible-stable-binary-arrays-i | Medium |
| 3130-find-all-possible-stable-binary-arrays-ii | Hard |
| Problem Name | Difficulty |
|---|---|
| 1888-minimum-number-of-flips-to-make-the-binary-string-alternating | Medium |
| Problem Name | Difficulty |
|---|---|
| 1980-find-unique-binary-string | Medium |
| Problem Name | Difficulty |
|---|---|
| 1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n | Medium |
| 1980-find-unique-binary-string | Medium |
| Problem Name | Difficulty |
|---|---|
| 1009-complement-of-base-10-integer | Easy |
| Problem Name | Difficulty |
|---|---|
| 3296-minimum-number-of-seconds-to-make-mountain-height-zero | Medium |
| 3600-maximize-spanning-tree-stability-with-upgrades | Hard |
| Problem Name | Difficulty |
|---|---|
| 3600-maximize-spanning-tree-stability-with-upgrades | Hard |
| Problem Name | Difficulty |
|---|---|
| 3600-maximize-spanning-tree-stability-with-upgrades | Hard |
| Problem Name | Difficulty |
|---|---|
| 3600-maximize-spanning-tree-stability-with-upgrades | Hard |
| Problem Name | Difficulty |
|---|---|
| 1622-fancy-sequence | Hard |
| 1878-get-biggest-three-rhombus-sums-in-a-grid | Medium |
| 3296-minimum-number-of-seconds-to-make-mountain-height-zero | Medium |
| Problem Name | Difficulty |
|---|---|
| 1878-get-biggest-three-rhombus-sums-in-a-grid | Medium |
| 3296-minimum-number-of-seconds-to-make-mountain-height-zero | Medium |
| Problem Name | Difficulty |
|---|---|
| 1622-fancy-sequence | Hard |
| Problem Name | Difficulty |
|---|---|
| 1622-fancy-sequence | Hard |
| Problem Name | Difficulty |
|---|---|
| 1727-largest-submatrix-with-rearrangements | Medium |
| 1878-get-biggest-three-rhombus-sums-in-a-grid | Medium |