亚麻社招店面

started off asking me to brief about myself, then about my recent project. was also asked to talk about my professional experience.

2 coding questions:

  1. 3Sum
  2. implementation of amazon prime video pause functionality.
    When we click pause button while watching prime video, it displays the list of actors present at that particluar time.
    was given list of actors who appear at particular time range, and was asked to implement a function when queried at particular time would list all the actor names.
    Jason - {2,9},{15-20}
    Jasica - {7,10}

getActorNames(8) – > Jason,Jasica
getActorNames(10) -->Jasica

Elevator has two buttons Up and Down , By pressing up elevator goes up by p floors and by pressing down it goes down by q floors. A building has n floors. Given a starting floor s , Can you explain if it’s possible to go to floor e .

I was able to come up with recursive solution in the given time frame. Interviewer wanted a more optimized solution.