Skip to content

Latest commit

 

History

History
94 lines (66 loc) · 2.64 KB

File metadata and controls

94 lines (66 loc) · 2.64 KB

📚 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