Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mustafaaly7/dsa-practice-javascript

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
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

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.