There are m students and m mentors, each labeled from m students and mentors of dimensions m $ imes$ n, where students[i] and mentors[j] represent the responses of student i and mentor j to n survey questions.
The compatibility score between student i and mentor j is defined as the number of questions for which their answers match (specifically, the count of indices k where students[i][k] == mentors[j][k]).
Every student must be assigned to exactly one mentor, and each mentor must be assigned to exactly one student.
Return the maximum possible compatibility score sum across all assignments.
Constraints:
m == students.length == mentors.length
n == students[i].length == mentors[j].length
m, n
students[i][k] is either
mentors[j][k] is either
There are m students and m mentors, each labeled from m students and mentors of dimensions m $ imes$ n, where students[i] and mentors[j] represent the responses of student i and mentor j to n survey questions.
The compatibility score between student i and mentor j is defined as the number of questions for which their answers match (specifically, the count of indices k where students[i][k] == mentors[j][k]).
Every student must be assigned to exactly one mentor, and each mentor must be assigned to exactly one student.
Return the maximum possible compatibility score sum across all assignments.
Constraints:
m == students.length == mentors.length
n == students[i].length == mentors[j].length
m, n
students[i][k] is either
mentors[j][k] is either