Course Overlap by Student ID

Asked at Walmart Labs · Coding Questions · Difficulty: Medium · Last asked Dec 31, 2025

Given a list of `(student_id, course_name)` pairs, output for every unordered pair of distinct students the list of courses they both take. The output keys are formatted as the two student IDs joined by a comma.

Loading the problem…