causaLens Interview Question

Build a function that returns the max sum possible from two elements within a list

Interview Answers

Anonymous

Oct 20, 2019

Import a library that does it for you, but I think they were looking for the hard (pointless?) raw algorithm.

Anonymous

Jun 11, 2020

sum(sorted(input)[-2:]))