LeetCode 825, Friends Of Appropriate Ages. Given an array ages where ages[i] is the age of person i, person x sends a friend request to person y (y != x) unless one of these holds: age[y] <= 0.5 *…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.