Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
LightBeam.ai interview experience Real time questions & tips from candidates to crack your interview

Frontend Developer

LightBeam.ai
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
I began coding, developing projects and solving problems in second Year of My college Journey. I learned to be clear about my approach and always have alternatives ready.
Application story
I applied for the Frontend role at Lightbeam.ai during a campus recruitment drive. The hiring process began with an internal shortlist, followed by three rounds of assessments. The first round was an online coding challenge, while the remaining two rounds took place on the same day. Each round was eliminatory, making the competition quite intense. Approximately 250 students participated in the process, with about 120 shortlisted for the online coding round. In the end, only four candidates were selected across all three roles: one for Frontend, two for Backend, and one for QA. Unfortunately, I was not among the final selections.
Preparation
Duration: 12 Months
Topics: Data Structures and Algorithms, C++, Python, JavaScript, HTML, CSS, React.js, NodeJS, Express.Js, Redux, SQL, MongoDB, DBMS, Operating System
Tip
Tip

Tip 1: Solve DSA (Data Structures and Algorithms) questions daily.
Tip 2: Prepare 2-3 high-quality projects.
Tip 3: Regularly conduct mock interviews with your friends.

Application process
Where: Campus
Eligibility: No criteria, (Salary Package: 20 LPA)
Resume Tip
Resume tip

Tip 1: Highlight key projects that showcase your technical skills and problem-solving abilities.
Tip 2: Keep your resume concise and tailor it to the specific role you are applying for, focusing on relevant experiences and accomplishments.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date25 Jun 2024
Coding problem2

1. Maximum subarray

Moderate
55m average time
35% success
0/80
Asked in companies
AmazonGoogleInfosys

This round was scheduled on the Coding platform, where I had to solve two coding questions in 35 minutes.


 

Try solving now

2. House Robber

Moderate
26m average time
0/80
Asked in companies
AmazonQuikrOYO

A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot.

Try solving now
02
Round
Medium
Face to Face
Duration60 Minutes
Interview date1 Jul 2024
Coding problem4

1. Manipulating an array of objects

Problem Statement:

In the first round of my front-end interview, I was given a problem that involved manipulating an array of objects. Each object represented a transaction and had the following properties: a category (e.g., "Groceries," "Entertainment"), an amount (a number representing the transaction's value), and a date (formatted as a string). The task was to group these transactions by category and calculate the total amount spent per category.
For example, given the following array of transactions:
const transactions = [
{ category: "Groceries", amount: 50, date: "2024-08-01" },
{ category: "Entertainment", amount: 100, date: "2024-08-03" },
{ category: "Groceries", amount: 30, date: "2024-08-04" },
{ category: "Bills", amount: 200, date: "2024-08-02" },
{ category: "Entertainment", amount: 50, date: "2024-08-05" }
];
 

The expected output was an object that displayed the total spent for each category:
{
 "Groceries": 80,
 "Entertainment": 150,
 "Bills": 200
}

Problem approach

To solve this, I used a JavaScript object to store the cumulative totals for each category. As I iterated through each transaction, I checked if the category already existed in the result object. If it did, I added the transaction amount to the existing total; if it didn’t, I initialized the category with the transaction amount. This way, by the end of the loop, I had the total spent per category.
I am able to solve this problem in 10 Minutes.

2. Form a Triangle

Easy
15m average time
80% success
0/40
Asked in companies
IndiaMartOYOPhone Pe

You are given an integer of array/list 'ARR' of length ‘N. You are supposed to return true if it is possible to construct at least one non-degenerate triangle using values of array/list as sides of the triangle, otherwise, return false.

Try solving now

3. Project Based Questions

Project Deep Dive:

During the interview, the interviewer reviewed my resume and asked me to walk through each project I had listed. One project, a full MERN stack application, caught their attention, and they focused on that. We discussed the technologies used, and they specifically asked about React hooks, probing deeper into my understanding of useEffect. I explained how I used useEffect in my project to handle side effects, such as fetching data from an API on the component mount, updating data in response to state changes, and cleaning up resources when components unmount.

Scenario-Based Question:

Following the discussion, the interviewer presented a scenario-based question related to my project. They asked me to implement a coupon management feature. I needed to write code to manage coupon creation, validation, and application based on various conditions. As I started coding, they provided some guidance on conditions to consider, such as checking the expiration date, ensuring the coupon applies only to eligible products, and handling one-time use cases. With their input, I was able to design a structured and functional solution.

This portion of the interview allowed me to showcase my coding abilities and demonstrated my practical knowledge of React and backend management, as well as my adaptability in responding to scenario-based questions.

4. DBMS

In this part of the interview, the interviewer asked some foundational questions to gauge my understanding of database concepts and data integrity.

1. What is Indexing? Which Data Structures Are Used for Indexing?

I explained that indexing Techniques. I mentioned that B-trees and hash tables are commonly used for indexing. B-trees are particularly effective for range-based queries, while hash tables are efficient for exact-match queries.

2. What are ACID Properties? (Learn)

03
Round
Hard
Face to Face
Duration45 Minutes
Interview date1 Jul 2024
Coding problem1

1. Round with Lead Software Engineer:

The round began with the Lead Software Engineer introducing himself and asking me to introduce myself. He was particularly interested in the React and Redux parts of one of my projects, so I gave an overview of the project and discussed my choice of technologies, explaining why I opted for React on the front end.

He asked a series of detailed questions about my React and Redux setup, such as which file is loaded first when the application gets a response from the server and how I structured the components. He also inquired about my choice of React and the advantages I saw in using it for this project. Afterwards, he asked me to open one of my files and walk him through it, with a focus on the Redux-related code.

As I explained, he zeroed in on the useDispatch and useSelector hooks, asking why I wrote the code the way I did and if I could demonstrate an alternative approach. I struggled to come up with a different method on the spot, and he didn't offer any suggestions to help me think through it. I sensed that he wasn’t entirely satisfied with my responses, and I felt that this impacted the flow of the conversation.

This round was challenging and highlighted the importance of understanding different approaches and being prepared to justify each coding decision in detail.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is the default value of int data type?

Choose another skill to practice
Start a Discussion
Similar interview experiences
Product Intern
6 rounds | 9 problems
Interviewed by Squadstack
0 views
0 comments
0 upvotes
Business Technology Analyst
4 rounds | 5 problems
Interviewed by Squadstack
2414 views
0 comments
0 upvotes
SDE - 1
3 rounds | 10 problems
Interviewed by Sterlite Technologies Limited
2318 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1529 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Frontend Developer
3 rounds | 11 problems
Interviewed by Amdocs
1727 views
0 comments
0 upvotes
company logo
Frontend Developer
2 rounds | 1 problems
Interviewed by Tata Consultancy Services (TCS)
1423 views
0 comments
0 upvotes
company logo
Frontend Developer
3 rounds | 8 problems
Interviewed by Paytm (One97 Communications Limited)
768 views
0 comments
0 upvotes