All Problems

Friends Of Appropriate Ages

MediumarrayExpected: O(1) time, Unknown spaceInterview Context
sorting

Problem

Given an array of ages, determine the total number of friend requests made based on age conditions.

Loading...