## JavaScript Algorithms

The JavaScript algorithms collection includes implementations and examples of popular algorithms in ES6. Algorithmic snippets are primarily a learning resource, as they might already be implemented natively or require optimizations to run in production.

Creates an array of numbers in the arithmetic progression, starting with the given positive integer and up to the specified limit.

Finds the index of a given element in a sorted array using the binary search algorithm.

Calculates the number of ways to choose

`k`

items from`n`

items without repetition and without order.Sorts an array of numbers, using the bubble sort algorithm.

Sorts an array of numbers, using the bucket sort algorithm.

Encrypts or decrypts a given string using the Caesar cipher.

Counts the occurrences of a substring in a given string.

Calculates the distance between two points.

Calculates the distance between two points in any number of dimensions.

Calculates the factorial of a number.

Generates an array, containing the Fibonacci sequence, up until the nth term.

Calculates the greatest common divisor between two or more numbers/arrays.

Initializes an array containing the numbers in the specified range where

`start`

and`end`

are inclusive and the ratio between two terms is`step`

. Returns an error if`step`

equals`1`

.Calculates the Hamming distance between two values.

Sorts an array of numbers, using the heapsort algorithm.