Back to problems

Solve Remembered Coding Tasks

Algorithm · Upstart · Medium

An online assessment contained several coding questions; the three below are the ones that were described clearly enough to reconstruct. Implement a solution for each of them. Task 1 — Best three companies by mean price You receive a dictionary prices that maps each company's name to the sequence of that company's closing stock prices over consecutive trading days. For every company, compute its mean price over the days recorded. Rank the companies from the largest mean to…

Checking your access…