This is my personal repository where I document my journey learning Data Structures and Algorithms using JavaScript. I use this space to track my progress, store my solutions to various LeetCode problems, and document my understanding of different problem-solving patterns and techniques.
leetcode-problems/
├── 150-dsa-interview/ # LeetCode Top 150 Interview Questions
├── arrays/
│ └── two-pointer/ # Two Pointer Technique Problems
│ └── easy/ # Easy Level Problems
| # | Problem | Difficulty | Solution | Topics |
|---|---|---|---|---|
| 1 | Two Sum | Easy | Solution | Array, Hash Table |
| 53 | Maximum Subarray | Medium | Solution | Array, Dynamic Programming |
| 121 | Best Time to Buy and Sell Stock | Easy | Solution | Array, Dynamic Programming |
| 238 | Product of Array Except Self | Medium | Solution | Array |
| 33 | Search in Rotated Sorted Array | Medium | Solution | Array, Binary Search |
| # | Problem | Difficulty | Solution | Topics |
|---|---|---|---|---|
| 26 | Remove Duplicates from Sorted Array | Easy | Solution | Array, Two Pointers |
| 27 | Remove Element | Easy | Solution | Array, Two Pointers |
| 283 | Move Zeroes | Easy | Solution | Array, In-place |
| 169 | Majority Element | Easy | Solution | Array, Voting |
| 189 | Rotate Array | Medium | Solution | Array, In-place |
| 122 | Best Time to Buy and Sell Stock II | Medium | Solution | Array, Greedy |
- Arrays
- Two Pointer Technique
- Hash Table
- Dynamic Programming
- Problem-Solving Patterns
- In-place Array Modifications
- Sliding Window
- Hash Map Usage
-
Each solution file contains:
- Problem description in comments
- Example test cases
- Well-documented solution with explanations
-
To run any solution:
node [path-to-solution-file]
This repository serves as a personal documentation of my DSA learning journey. I regularly update it with:
- New problem solutions as I solve them
- Improved solutions when I learn better approaches
- Notes about different problem-solving patterns
- Implementation techniques I've learned
Note: This is a personal learning repository to showcase my progress and understanding of DSA concepts. While the solutions here work, there might be more optimal approaches as I continue to learn and improve.