Amazon onsite interview. Lack of sleep, interview anxiety, mental freeze killed all my chances.
1 . LP + OOD question. Interviewer was not intrested in the working solution but stressed on classes, interfaces and how I design it.
LP + Given a log of website requests, where each line contains an entry with the following fields
(time, customerId, pageVisited), write an algorithm to find the top 3-page sequence of page visits
for all customers. Each line represents a request (A-Z) made by customer (C#) at time T to one of
the website's pages.
For example, given the following log file containing:
T0,C1,A
T0,C2,E
T1,C1,B
T1,C2,B
T2,C1,C
T2,C2,C
T3,C1,D
T3,C2,D
T4,C1,E
T5,C2,A
I dont remember exactly - something like arrays of 5 machines, with its value representing the days to complete 1 item. How many items will be completed after 10 days.
System Design - Design estore. All interviewer did was listen. And ask me few Qs here and there.
Result : reject.