Back to problems

Geography Related Log Query

Algorithm · Datadog · Easy

Problem You are given a stream of geographic query logs. Each entry records a user ID, a queried latitude and longitude, and a timestamp. Every log entry uses this CSV format: From the logs, determine which geographic region each user queried most often. For this task, a region is a distinct latitude/longitude pair: identical coordinate values belong to the same region. Requirements Input: log entries in CSV format. Output: the most queried region for each user. The solution…

Checking your access…