about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-01T21·30+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-01T22·32+0000
commitb4689761d9ca284a3f6f3b6c096eb37d5b96fec6 (patch)
tree2d2efa10e4f38e1fae3b4ea0effad3c247cbb4bb /default.nix
parentdff621922c6d4c0a3bd9947303ee9ac45bee3e32 (diff)
Solve InterviewCake's highest-product-of-3
Write a function that returns the highest product of three integers within a
list of integers. This solution uses a greedy algorithm that solves for the
answer in linear time. The space complexity is constant.
Diffstat (limited to 'default.nix')
0 files changed, 0 insertions, 0 deletions