Ad
  • Default User Avatar

    It is really laconic, but it introduces additional temp list which makes it slower than other solutions. Moreover it uses pop to get data from args: it is also slower than just iterating values, but moreover it modifies args. This is not a problem for test, but in real project it might be a problem. So "Clever", but not "Best Practives".

  • Custom User Avatar

    There're 2 -9 in the input. Your solution is wrong.