Algorithm · Goldman Sachs · Medium
Requirements Given an array of (name, score) records, where every score is numeric, determine the greatest average score achieved by any individual. Use this function interface: The prompt does not establish how ties should be handled or whether the function should return only the average or a (name, average) pair. Confirm those details with the interviewer before implementing. Examples Assuming the function returns only the highest average: Example 1 Noah's average is 88,…
Checking your access…