Available question text
For each employee, report their primary department by selecting the department_id with primary_flag = 'Y' if one exists; if an employee belongs to only one department (and its flag is 'N'), return that department_id.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1789. Primary Department for Each Employee
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source