Ad
  • Default User Avatar

    While the tests might only provide a singular entry, the datatypes in use don't actually restric the number of entries which suggests the intent of the code is to also support multiple entries, so I think the min would be important, but ultimately, I didn't write the original stuff. Regardless, if there should only ever be one entry, then the code should only provide datatypes and paths that allow for a single entry, otherwise, it should be 'defensive'.

  • Default User Avatar

    I think you are right, we don't need min or the function f
    we only need the truck's last snapshot
    I updated my sol accordinagly

  • Custom User Avatar

    In find_furthest_west(), why is the min required in

    f = lambda v: min([x['position'].x for x in v])

    As I understand the script, x is only one value as f(data[a]) returns the entries at element a.

    Thanks in advance.