LeetCode 18

1731. The Number of Employees Which Report to Each Employee

* ProblemFor this problem, we will consider a manager an employee who has at least 1 other employee reporting to them.Write a solution to report the ids and the names of all managers, the number of employees who report directly to them, and the average age of the reports rounded to the nearest integer.Return the result table ordered by employee_id.* ExplanationNote that we do not care about days..

2356.Number of Unique Subjects Taught by Each Teacher

*Problem Write a solution to calculate the number of unique subjects each teacher teaches in the university.Return the result table in any order. *ExplanationTeacher 1: - They teach subject 2 in departments 3 and 4. - They teach subject 3 in department 3.Teacher 2: - They teach subject 1 in department 1. - They teach subject 2 in department 1. - They teach subject 3 in department 1. - They..