Skip to content

This repository contains JavaScript implementations of key algorithms, data structures, and solutions to common problems, helping you master DSA concepts for interviews and competitive programming πŸš€

Notifications You must be signed in to change notification settings

imunreal7/DSA-in-JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š DSA in JavaScript πŸš€

This repository contains Data Structures and Algorithms (DSA) implemented in JavaScript. It includes algorithms, data structures, and problem-solving code to help you learn and improve your problem-solving skills for interviews and coding challenges.


πŸ“‚ Folder Structure

1. Algorithms

This folder contains implementations of common algorithms like sorting and searching:

  • binarySearch.js - Binary Search Algorithm
  • bubbleSort.js - Bubble Sort Algorithm
  • cartisianProduct.js - Cartesian Product
  • insertionSort.js - Insertion Sort Algorithm
  • linearSearch.js - Linear Search Algorithm
  • mergeSort.js - Merge Sort Algorithm
  • quickSort.js - Quick Sort Algorithm
  • selectionSort.js - Selection Sort Algorithm

2. Data Structures

This folder contains code implementations of popular data structures:

  • array.js - Arrays
  • binaryTree.js - Binary Tree
  • doublyLinkedList.js - Doubly Linked List
  • graph.js - Graph
  • hashTable.js - Hash Table
  • linkedList.js - Linked List
  • queue.js - Queue
  • stack.js - Stack

3. Problems

This folder includes various coding problems with solutions:

  • capitaliseWords.js - Capitalize Words in a Sentence
  • climbStaircase.js - Climb Staircase Problem
  • combination.js - Combination Generator
  • factorial.js - Factorial of a Number
  • fibonacci.js - Fibonacci Series
  • gcdEuclid.js - GCD using Euclid's Algorithm
  • isPalindromeInt.js - Check if Number is a Palindrome
  • isPalindromeStr.js - Check if String is a Palindrome
  • isValidParanthesis.js - Valid Parentheses Checker
  • knapsackProblem.js - Knapsack Problem
  • longestSubstring.js - Longest Substring without Repeating Characters
  • maxStockProfit.js - Maximize Stock Profit
  • permutation.js - Generate Permutations
  • powerOfTwo.js - Check if Power of Two
  • primeNumber.js - Prime Number Check
  • reverseString.js - Reverse a String
  • reverseStringStack.js - Reverse String Using a Stack
  • romanToInteger.js - Roman Numeral to Integer
  • towerOfHanoi.js - Tower of Hanoi Solution
  • wordCounter.js - Count Words in a String

πŸ“– How to Use

  1. Clone the Repository

    git clone https://github.com/imunreal7/DSA-in-JavaScript.git
    cd dsa-in-javascript
  2. Run Code Locally

    Ensure you have Node.js installed.

    node <file-name>.js

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the ISC License.

Author

Aman Dubey

About

This repository contains JavaScript implementations of key algorithms, data structures, and solutions to common problems, helping you master DSA concepts for interviews and competitive programming πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published