Counting sortCounting sort
Problem: With a small range of input values, try to find out the frequecy and sort the input values. Concept: Assume the values in the array are within 0-99. First, [...]
Category: Algorithm JS
Problem: With a small range of input values, try to find out the frequecy and sort the input values. Concept: Assume the values in the array are within 0-99. First, [...]
Category: Algorithm JS
Problem: Find the target element within a sorted array. Concept: Divide the array into 3 parts (left, middle and right). Check the middle element, if it is larger than the [...]
Category: Algorithm JS