https://github.com/mustafaaly7/dsa-practice-javascript
A personal collection of core DSA problems implemented in JavaScript β focused on logic building, array manipulation, loops, and fundamental algorithms. Built to prepare for coding interviews and strengthen problem-solving skills from scratch.
https://github.com/mustafaaly7/dsa-practice-javascript
advanced-programming basics-of-javascript dsa dsa-practice interview-questions practice questions-and-answers tricky-problems
Last synced: 3 months ago
JSON representation
A personal collection of core DSA problems implemented in JavaScript β focused on logic building, array manipulation, loops, and fundamental algorithms. Built to prepare for coding interviews and strengthen problem-solving skills from scratch.
- Host: GitHub
- URL: https://github.com/mustafaaly7/dsa-practice-javascript
- Owner: mustafaaly7
- Created: 2025-10-08T14:26:10.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-10-08T14:34:12.000Z (3 months ago)
- Last Synced: 2025-10-08T16:08:57.493Z (3 months ago)
- Topics: advanced-programming, basics-of-javascript, dsa, dsa-practice, interview-questions, practice, questions-and-answers, tricky-problems
- Language: JavaScript
- Homepage: https://mustafa-ali-portfolio.vercel.app/
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π§ DSA Practice in JavaScript
A structured collection of my **Data Structures & Algorithms** practice problems written in **JavaScript**.
This repository helps me prepare for **coding interviews**, **logic-based tests**, and **algorithmic thinking** by solving core problems without relying on prebuilt methods.
---
## π Structure
| Folder | Description |
|--------|--------------|
| `01-Basics/` | Simple array and loop-based problems β max, min, sum, even/odd separation |
| `02-Intermediate/` | Problems involving logic and conditions β missing number, rotation, sorting checks |
| `03-Advanced/` | Algorithmic thinking β Kadaneβs, pair sums, max differences, and more |
---
## π§© Topics Covered
- Array traversal and manipulation
- Conditional logic and iterations
- Searching and sorting logic
- Basic algorithm patterns (max/min, sums, frequency, rotation)
- Problem-solving using pure JavaScript (no libraries)
---
## π§ Example Problem
```js
// find-max.js
const arr = [10, 5, 4, 6, 0, 9, 7, 100];
let maxVal = arr[0];
for (let i = 0; i < arr.length; i++) {
if (arr[i] > maxVal) {
maxVal = arr[i];
}
}
console.log("Maximum value:", maxVal); // 100