An open API service indexing awesome lists of open source software.

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.

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