Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 685 Bytes

learners-and-courses.md

File metadata and controls

31 lines (25 loc) · 685 Bytes

Learners and Courses

Learners are people using Go1 to learn something. Courses are videos, quizzes, interactive experiences, etc.

For this challenge, the dataset contains a map of LearnerIds and a list of CourseIds that the Learner's have completed.

We'd like to know about courses that have only been completed by a single learner.

Return a list of CourseId's that have only been completed by 1 Learner.

Example input:

{
  "Learner-0001": [
    "Course-0001",
    "Course-0002",
    "Course-0003"
  ],
  "Learner-0002": [
    "Course-0002",
    "Course-0003",
    "Course-0004"
  ]
}

Example output:

[ "Course-0001", "Course-0004" ]