Category: Algorithm
Largest Sum Contiguous Subarray in Javascript
Simple Idea is to use Kadane’s algorithm is to look for all positive contiguous segments of the array. And keep track of maximum sum contiguous segment among all positive segments
Program For Merge Sort in Javascript
Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used […]