Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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'.
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
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.