Skip to content

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.

Notifications You must be signed in to change notification settings

mustafaaly7/dsa-practice-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 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

// 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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published