diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-01T21·30+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-01T22·32+0000 |
commit | b4689761d9ca284a3f6f3b6c096eb37d5b96fec6 (patch) | |
tree | 2d2efa10e4f38e1fae3b4ea0effad3c247cbb4bb /elisp-conventions.md | |
parent | dff621922c6d4c0a3bd9947303ee9ac45bee3e32 (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 'elisp-conventions.md')
0 files changed, 0 insertions, 0 deletions