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.
- Time Complexity: O(n)
- Space Complexity: O(n)
- Time Complexity: O(n + k)
- Space Complexity: O(k)