LeetCode MEDIUM 811 Subdomain Visit Count Summary
Generated by Codex with GPT 5.6 Sol XHigh
Quick facts
- Difficulty:
MEDIUM - Problem: Subdomain Visit Count
- Topics:
Array,Hash Table,String,Counting
Problem gist
Each input string pairs a visit count with a domain, such as "9001 discuss.leetcode.com". A visit to that domain also counts as a visit to every parent domain: leetcode.com and com in this example. The task is to total the visits for every full domain and parent subdomain that appears implicitly or explicitly in the input. The output order does not matter.