Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1364. Number of Trusted Contacts of a Customer
Given a list of directed trust relationships between customers and a target customer, determine how many distinct customers are reachable from that target (trusted directly or via chains). This requires building a directed graph and using graph traversal or transitive-closure techniques while handling cycles and deduplication for large inputs.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.