Salesforce | LMTS

Anonymous User
5280
Mar 05, 2021
Mar 08, 2021

Round 1:
Design Elevator System (LLD, classes and methods, expected to write full working code)
There can be 2 to 100 elevators. Flexibility to add elevators in the system. Need to handle cases when elevators are at top and ground floor.

Round 2:
Q1 Coding problem related to array.
Finding maximum number out of minimum from buckets of k size from an unsorted array.
e.g. Input: [1,3,4,6,2,9,8], and k = 2
Output: 8
Explanation:
First, bucketize the input as per value k = 2 i.e: [1,3], [3,4], [4,6], [6,2], [2,9], [9,8]
Second, find minimum of each bucket:
[1,3] -> 1
[3,4] -> 3
[4,6] -> 4
[6,2] -> 2
[2,9] -> 2
[9,8] -> 8
Finally, return maximum of all minimums i.e. 8.

Q2: Design Shopping Cart / Order (e.g. Amazon shopping cart). Both LLD and HLD. Handle Scalability.

Round 3:
Single question on High Level System Design:
Design Health (blood tests, appointments) Records Keeping system.

Couldn't go further. Rejected

Comments (7)