← Morgan Stanley questions

Design data structure for student subject queries

Filed under Morgan Stanley

Design a data structure to manage student-subject enrollments. It must support adding an enrollment and querying: 1) the number of students in a specific subject, and 2) the number of subjects a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.