Algorithm · Two Sigma · Medium
Requirements Implement the following function for a collection of aligned daily temperature records from NYC and several towns: Each item in records is a mapping with a date plus one numeric field named NYC and one numeric field for every town. The function must answer all six questions below and return their results in a mapping with these keys: largest_variation_town, conditional_nyc_median, sum_abs_slopes, best_single_town, best_town_pair, and best_five_towns. Identify…
Checking your access…