The first round was an online coding test consisting of 2 questions to be solved in 90 minutes.
Question 1: Find the longest subarray with a given sum.
Difficulty: Medium
Approach: Used sliding window and prefix sums to optimize.
Question 2: Simulate an elevator's operations based on floor requests.
Difficulty: Hard
Approach: Focused on edge cases like overlapping floor requests and efficient traversal.
Technical Round 1:
Duration: 1 Hour
Questions:
Problem-solving: Implement a function to merge overlapping intervals.
Follow-up: Optimize for space and discuss edge cases.
Brief discussion on past projects.
Technical Round 2: