Intuit
1 DSA problems asked in Intuit coding interviews
0 Easy
1 Medium
0 Hard
All Categories
All
1 problem
Arrays & Hashing1
Subdomain Visit Count
Medium
A domain like `"discuss.leetcode.com"` is made of labels separated by dots. Visiting it also counts as a visit to every parent domain: `"leetcode.com"` and `"com"`. A **count-paired domain** is a string `"rep d"`, meaning domain `d` was visited `rep` times, for example `"9001 discuss.leetcode.com"`. Given an array of count-paired domains `cpdomains`, return *an array of the count-paired domains of every subdomain that was visited*, in **any order**.