Morgan Stanley Interview Question

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2023-02-25Added By Anonymous
Source: Link
Company: Morgan Stanley
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

Original Experience:
Coding Question: Suppose there is an array : [10,20,10,30,50,20,60,20,20,20,70,80,20,90] 1) We need to find the element(say x) which occured most number of times using Stream API. 2) We need to remove the immediate left and right element of that element(x). LLD Question: An office has 4 floors. Each floor has 4 printers. A user should be able to print using any printer on his floor. A printer queue should not have more than n jobs There are two kinds of printers: Colored and B/W(black and white). The colored print can only go to a colored printer but a B/W print can go to any printer.
Comments