BrowserStack | SDE 2 | India | August 2024 [Reject]
Anonymous User
720

R1 - Technical phone screen (1 hour):
Some algorithmic question along with some managerial questions.

R2 - Machine Coding (1.5 hours):
This problem requires you to implement a log watching solution (similar to the tail -f command in UNIX). However, in this case, the log file is hosted on a remote machine (same machine as your server code). The log file is in append-only mode.

You have to implement the following:

A server side program to monitor the given log file and capable of streaming updates that happen in it. This will run on the same machine as the log file. You may implement the server in any programming language.

A web based client (accessible via URL like http://localhost/log) that prints the updates in the file as and when they happen and NOT upon page refresh. The page should be loaded once and it should keep getting updated in real-time. The user sees the last 10 lines in the file when he lands on the page.

Problem Constraints

The server should push updates to the clients as we have to be as real time as possible.
Be aware that the log file may be several GB, how to optimise for retrieving the last 10 lines?
The server should not retransmit the entire file every time. It should only send the updates.
The server should be able to handle multiple clients at the same time.
The web page should not stay in loading state post the first load and it should not reload thereafter as well.
You may not use off-the-shelf external libraries or tools to read the file or provide tail-like functionalities.

R3 - Director of Engineering Round
General discussion about my project.

R4 - HR

  • Behavioral questions
  • At last HR asked me if I have any questions. I asked about why there are so many negative comments about work life balance and she just Didn’t give me any straight answer.

I didn’t receive any feedback for two weeks. When I followed up, they mentioned that I wouldn’t be a good fit for their culture and implied that my question about work-life balance was a concern.

My suggestion is to not wasting your time or energy on such company, try for better one.

Comments (1)