causaLens interview question

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

Interview Answers

Anonymous

20 Oct 2019

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

Anonymous

11 Jun 2020

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