Posts tagged “algorithm”

25 Oct 2015

How to calculate the square root using Babylonian method.

Babylonian method for calculating square root of a number.

23 Oct 2015

How to find the difference between arrays

Algorithm to find the difference between array.

23 Oct 2015

How to find the balance points of an array

Find the balance points of an array.

09 Oct 2015

How to sum the digits of a number

How to sum the digits of a number.

22 May 2015

How to find the minimum value in an array

Find the minimum value in an array.

22 May 2015

How to find the maximum value in an array

Find the maximum value in an array.

25 Feb 2015

K-Means Clustering in JavaScript [Demo]

An example of the k-means algorithm in JavaScript.

16 Feb 2015

Naive Bayes Classifier in JavaScript [Demo]

Naive Bayes classifier implementation in JavaScript.