Code questions
- Return a deep copy of a given node in a graph.
- Return the zigzag traversal as a space-deliminitted string of a given binary tree.
- Given helper methods to find a user's friends and a user's bought items, write a function to get reccomended items for a given user. Reccomended items are ones which have been bought by friends but not the user. Sort them by frequency.
Design questions
- Amazon Locker: Given a package that has to be dropped of at a particular location, and a list of locations that have lockers, which have slots of different sizes, return the best slot to be used. What if we had multiple packages instead of one? What if a medium slot could fit 2 small packages, and a large slot could fit two medium packages and four small packages?
- Car Rental: Describe the classes needed for a customer to book a reservation for a car, and to get his/her rental history.
LP Questions
Describe a time when you:
- Handled a difficult situation
- Did something not explicitly required by you
- Got something done in a short span of time
- Helped someone who was struggling
- Were not able to meet the deadline
- Had to contemplate between code quality and faster velocity
- Realized that you wouldn't be able to complete the project on time
- Had to learn many new skills to get the job done