Find the student with the highest average mark from a 2D array of marks.
Unlock detailed company stats for this questionUpgrade
Given a 2D array of (student name, mark) pairs, where marks can be positive or negative and a student can appear more than once, find the student with the maximum average.
Example: {{"Jethiya": "20"}, {"Bida": "50"}, {"Iyer Idli": "99"}, {"Jethiya": "25"}} gives "Iyer Idli".
Format · Goldman Sachs CoderPad interview, first of two questions.
Community answers
No answers contributed by the community yet.
Related questions
Find the highest average score among students who appear multiple times.Given Student, Department and Events tables, write a query to find the average marks of each department.Given Employee(id, department_id, salary) and Departments(id, name), find the department or departments with the highest average salary.Related courses

Course

Course
Course
