← 返回 walmartlabs 的题目列表Course Overlap
类型:online_judge
Determine which courses have overlapping students given a set of course enrollments.
Input
String[][] array in the format {{"17", "Math"}, {"17", "English"}, {"58", "Math"}, {"61", "Physics"}}
Output
Return a formatted string, e.g., {"17,58", ["Math"], "17,61", [], "58,61", []}
Example
Input
[["17", "Math"], ["17", "English"], ["58", "Math"], ["61", "Physics"]]