Relative Content

Tag Archive for javascriptarrayssortingheap

Max Product Finder with heap

task:
Max Product Finder
Create a maxProductFinderK() function that takes in a list of numbers and an integer k, and returns the largest product that can be attained from any k integers in the list. You may presume that the length of the list of integers is greater than or equal to k.