Loading content...
A recruiting analytics team tracks candidate capabilities in a normalized skill table.
Table: Candidates
The pair (candidate_id, skill) is unique.
A candidate qualifies for the Data Scientist shortlist only when all three required skills are present exactly as written:
Your task is to return the IDs of all qualifying candidates.
Output requirements:
Supported submission environments:
Candidates:
| candidate_id | skill |
|--------------|--------------|
| 1001 | Python |
| 1001 | Tableau |
| 1001 | PostgreSQL |
| 1001 | Spark |
| 1002 | Python |
| 1002 | Tableau |
| 1003 | PostgreSQL |
| 1004 | Python |
| 1004 | Tableau |
| 1004 | PostgreSQL |[
{"candidate_id":1001},
{"candidate_id":1004}
]Candidates 1001 and 1004 have all three required skills. Extra skills like Spark are allowed. Candidate 1002 is missing PostgreSQL, and 1003 is missing Python and Tableau.
Candidates:
| candidate_id | skill |
|--------------|--------------|
| 201 | python |
| 201 | Tableau |
| 201 | PostgreSQL |
| 202 | Python |
| 202 | Tableau |
| 202 | PostgreSQL |
| 203 | Python |
| 203 | PostgreSQL |[
{"candidate_id":202}
]Matching is case-sensitive and exact. The value 'python' does not satisfy the required skill 'Python'.
Candidates:
| candidate_id | skill |
|--------------|--------------|
| 301 | Python |
| 301 | Tableau |
| 301 | PostgreSQL |
| 302 | Python |
| 302 | Tableau |
| 303 | Python |
| 303 | Tableau |
| 303 | PostgreSQL |
| 304 | Tableau |
| 304 | PostgreSQL |[
{"candidate_id":301},
{"candidate_id":303}
]Only candidates with all three mandatory skills are returned, sorted by candidate_id.
Constraints