A collection of algorithm problem solutions implemented in JavaScript, covering common patterns such as arrays, strings, sliding windows, greedy algorithms, and more.
Each problem includes multiple approaches where applicable, from basic to optimized, with an emphasis on readability and efficiency.
- Multiple Approaches: From brute force to optimized O(1) space and time-efficient solutions.
- Organized by Topic: Arrays, strings, sliding window, greedy, and more.
- Commit History Preserved: Each approach tracked via descriptive commits.
- Practical Problems: Inspired by real interview questions, including those from Amazon and other top tech companies.
- Array & String manipulation
- Sliding window techniques
- Greedy algorithms
- Problem-solving optimizations
# Clone the repository
git clone https://github.com/shafiqshams/algorithmic-problems.git
# Navigate into the project
cd algorithmic-problems
# Open a problem file and run in Node.js
node path/to/problem.js