JavaScript icon indicating copy to clipboard operation
JavaScript copied to clipboard

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

Results 263 JavaScript issues
Sort by recently updated
recently updated
newest added

### Motivation In backtracking, Hamiltonian problem is plays great role. Adding this file of program in JS & test file increase it's diversity. ### Examples **Pathfinding Algorithms:** This is useful...

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

The change replaces the final loop with a direct return statement. Previously, the code looped through all vertices to find the destination and then returned its distance. This loop was...

Implemented a function to transpose a 2D array. It's just for the basic understanding of the How Arrays work, how they transpose their elements.

I added a simple and clean implementation of the Insertion Sort algorithm in JavaScript. Please review and merge. Thank you! [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x]...

Implement palindrome partitioning algorithm to find all possible palindromic substrings of a given string. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [ ] Add an algorithm? - [...

I have added a simple Bubble Sort implementation in JavaScript. The code is clean, easy to understand, and follows the style of the repository. Please review and merge this PR....

### Description The current ConvexHull implementation has a critical bug in the `orientation` function that causes division by zero when processing points that share the same x-coordinate (vertical lines). ##...

bug

# [New Feature] Searching and Sorting Algorithms - Added reference implementations for searching (linear, binary) and sorting (bubble, quicksort, merge sort) algorithms. - Useful for interview prep and algorithmic learning....

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [ ] Add an algorithm? - [☑] Fix a bug or typo in an existing algorithm? (Commit message contains description of...