Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 597. Friend Requests I: Overall Acceptance Rate
Given a set of users (typically with an attribute like age) and a deterministic rule that decides whether a friend request from user A to user B is accepted, compute the overall acceptance rate (accepted requests divided by total requests). The challenge is to apply the acceptance rule across all user pairs efficiently (using counting, sorting, or two‑pointer techniques) instead of brute‑forcing O(n^2) checks.
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.