Skip to content

Algorithm that returns the highest product between three numbers of a given array of integers. I have developed two approaches which take time and space complexity into account.

Notifications You must be signed in to change notification settings

xava-dev/algorithm-highest-product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Algorithm Highest / Max Product

Algorithm that returns the highest product between three numbers of a given array of integers.

I have developed two approaches which take time and space complexity into account.

Approach 1

  • Time Complexity: O(n)
  • Space Complexity: O(n)

Approach 2

  • Time Complexity: O(n + k)
  • Space Complexity: O(k)

About

Algorithm that returns the highest product between three numbers of a given array of integers. I have developed two approaches which take time and space complexity into account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published