← Morgan Stanley questions
CodingMedium

Shortest period with upload rate meeting threshold

Filed under Morgan Stanley

Given a list of file upload rates for N consecutive hours and a threshold R, find the shortest consecutive period of hours where the sum of file upload rates is at least R.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.