Back to problems

Sequential, Deduped, and Parallel URL Fetcher

Algorithm · Atlassian · Medium

Requirements Accept a list of URLs as the first argument to fetch_urls. Make an HTTP request for every URL and return response records that include, at minimum, the URL, its status code, and its response body. In the base mode, issue requests one after another in input order. Support the follow-up behaviors below: Remove repeated URLs before sending requests. Verify with tests that removing duplicates leaves the expected response set unchanged. Provide a parallel…

Checking your access…