Manager With Highest Average Salary Among Reports

Asked at Amazon · Coding Questions · Difficulty: Medium

You are given employee records `(employee_id, manager_id, salary)` where `manager_id == -1` means no manager.

Loading the problem…