PinterestSoftware Engineer · Phone ScreenCodemia practiceGroup Duplicate Pin Uploads by Content Hash and Upload Time
Given a list of Pin uploads as (pin_id, content_hash, upload_ts), return every group of Pins that share the same image hash. Order each group by upload time so the first entry is the canonical original, and order groups by their earliest upload.