Livspace | SDE 2 | Frontend | Interview experience
Anonymous User
762

Applied via linkedIn. Recruiter reached out on linkedIn after I applied.

Round 1 (Javascript):

  • Difference between async and defer
  • Session storage question (e.g., how to persist form data even after a page refresh)

Javascript problem solving
Input —->

const activities = [
  { user: 8, duration: 50, equipment: ['study'] },
  { user: 7, duration: 150, equipment: ['running','running'] },
  { user: 1, duration: 10, equipment: ['eating','eating'] },
  { user: 7, duration: 100, equipment: ['gyming', 'coding'] },
  { user: 7, duration: 200, equipment: ['biking','gyming', 'coding'] },
  { user: 2, duration: 200, equipment: ['cocking'] },
  { user: 2, duration: 200, equipment: ['biking'] },
];

Output —>

[
  { user: 8, duration: 50, equipment: [ 'study' ] },
  {
    user: 7,
    duration: 450,
    equipment: [ 'biking', 'coding', 'gyming', 'running' ]
  },
  { user: 1, duration: 10, equipment: [ 'eating' ] },
  { user: 2, duration: 400, equipment: [ 'biking', 'cocking' ] }
]
  • Group the data with userId
  • Remove duplicates inside the equipment array
  • Sort the array lexographically

Round 2 Javascript

  • SSR related questions
  • Why do we need nextJs if React 19 has SSR now

Javascript Problem solving

Event Emitter - https://leetcode.com/problems/event-emitter/description/

Had to use vanilla javascript. The interviewer was nice we did say if you are not comfortable with vanilla javascript then you can implement it in React.

Requirements:

  • The grid should be generated dynamically based on a given n (e.g., n = 5 → 5 × 5 grid).
  • Initially, all cells should have the same background color (say, blue).
  • When a user clicks on a cell:
  • The cell should immediately change to a different color (say, red).
  • Keep track of the order of clicks.
  • There should be a "Start" button.
  • On clicking "Start", the clicked cells should revert back to the initial color one by one, in the exact order they were clicked.
  • The reset should happen with a short delay between each cell (e.g., 500ms).
  • After reset, the grid should be ready for interaction again.

Completed 50% of it. Discussed the remaining approach verbally. Talked about optimisation using event deligation

Round 3 Javascript + LLD

Problem related to transforming the data using reduce.
Design a Restraunt ordering system.

Round 4 Managerial round

Half an hour call discussing about the things I have mentioned on the resume.

Round 5 HR round

  • Why you want to joing Livspace
  • Tell us about a time you had a conflict with a senior how did you handle it.
  • Why software developer and then why frontedn in particular.

The entire loop took about 2 weeks to finish up.

Verdict - Selected.

Compensation: https://leetcode.com/discuss/post/7225338/livspace-sde-2-compensation-by-anonymous-tkpu/

Comments (4)