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.
This folder contains implementations of common algorithms like sorting and searching:
binarySearch.js
- Binary Search AlgorithmbubbleSort.js
- Bubble Sort AlgorithmcartisianProduct.js
- Cartesian ProductinsertionSort.js
- Insertion Sort AlgorithmlinearSearch.js
- Linear Search AlgorithmmergeSort.js
- Merge Sort AlgorithmquickSort.js
- Quick Sort AlgorithmselectionSort.js
- Selection Sort Algorithm
This folder contains code implementations of popular data structures:
array.js
- ArraysbinaryTree.js
- Binary TreedoublyLinkedList.js
- Doubly Linked Listgraph.js
- GraphhashTable.js
- Hash TablelinkedList.js
- Linked Listqueue.js
- Queuestack.js
- Stack
This folder includes various coding problems with solutions:
capitaliseWords.js
- Capitalize Words in a SentenceclimbStaircase.js
- Climb Staircase Problemcombination.js
- Combination Generatorfactorial.js
- Factorial of a Numberfibonacci.js
- Fibonacci SeriesgcdEuclid.js
- GCD using Euclid's AlgorithmisPalindromeInt.js
- Check if Number is a PalindromeisPalindromeStr.js
- Check if String is a PalindromeisValidParanthesis.js
- Valid Parentheses CheckerknapsackProblem.js
- Knapsack ProblemlongestSubstring.js
- Longest Substring without Repeating CharactersmaxStockProfit.js
- Maximize Stock Profitpermutation.js
- Generate PermutationspowerOfTwo.js
- Check if Power of TwoprimeNumber.js
- Prime Number CheckreverseString.js
- Reverse a StringreverseStringStack.js
- Reverse String Using a StackromanToInteger.js
- Roman Numeral to IntegertowerOfHanoi.js
- Tower of Hanoi SolutionwordCounter.js
- Count Words in a String
-
Clone the Repository
git clone https://github.com/imunreal7/DSA-in-JavaScript.git cd dsa-in-javascript
-
Run Code Locally
Ensure you have Node.js installed.
node <file-name>.js
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the ISC License.
Aman Dubey