Bajaj Electricals Ltd interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Bajaj Electricals Ltd
upvote
share-icon
5 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Javascript, Reactjs, OOPS, Data Structures, Java
Tip
Tip

Tip 1 : Be consistent. Make a schedule to atleast do 3-5 questions daily no matter how busy the schedule is. This will help to make routine and soon you will start seeing your growth. 
Tip 2 : Explore. Keep exploring and have the interest to learn. Web Development is something that more you explore and more you practice, the more you will ace.
Tip 3 : Participate in more events and hackathons. This will add up to your experience and you will network with a lot of people.

Application process
Where: Campus
Eligibility: There was no criteria as defined but one should maintain a decent CGPA so as to qualify for most of the companies.
Resume Tip
Resume tip

Tip 1 : Don't add a long list of projects. Just add 2-3 of your best projects that will define your total knowledge and work you have done. Even 1 major project will define your work but it should be a great one.
Tip 2 : Never lie on your resume. Only add the skills that you believe you have or you will learn and grasp quickly.
Tip 3 : Be specific about your details and do not write long paragraphs to define your experiences.

Interview rounds

01
Round
Easy
Assignment
DurationNo duration
Interview date28 Feb 2022
Coding problem1

1. Assignment

It was a basic browser test to test our development skills. There were questions whos answers were in the console, localstorage or the results of fetched API. There was no time limit but the one to complete early were shortlisted.

Problem approach

Tip 1 : Have a good knowledge of web browser like console, localstorage etc.

02
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date1 Mar 2022
Coding problem1

It was a day test conducted on hackerearth. There were few mcqs and 2 coding questions.

1. Ninja And The Fence

Hard
0/120
Asked in company
Bajaj Electricals Ltd

Ninja has given a fence, and he gave a task to paint this fence. The fence has 'N' posts, and Ninja has 'K' colors. Ninja wants to paint the fence so that not more than two adjacent posts have the same color.

Ninja wonders how many ways are there to do the above task, so he asked for your help.

Your task is to find the number of ways Ninja can paint the fence. Print the answer modulo 10^9 + 7.

Example:
Input: 'N' = 3, 'K' = 2
Output: 6

Say we have the colors with the numbers 1 and 0. We can paint the fence with 3 posts with the following different combinations.

110
001
101
100
010
011
Try solving now
03
Round
Easy
Face to Face
Duration45 minutes
Interview date9 Mar 2022
Coding problem2

It was a face to face round with Senior Software Engineer. The topic of discussion was Data Structures, Reactjs, the projects I've made and basic web development.
I was given array question to solve and my javascript skills were tested.
There was a good discussion over my major projects and the work I've done.

1. Reverse the String

Easy
15m average time
85% success
0/40
Asked in companies
IBMFacebookAcko

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

Step 1 : I first applied normal iteration to reverse the string.
Step 2 : Then they updated the question and give a string expression to reverse.
Step 3 : I then converted it to char array and then reversed the individual word. The interviewer was happy with it.

Try solving now

2. Number Of Pairs With Given Sum

Moderate
39m average time
60% success
0/80
Asked in companies
Goldman SachsAmazonSamsung

You have been given an integer array/list(arr) and a number 'Sum'. Find and return the total number of pairs in the array/list which when added, results equal to the 'Sum'.

Note:
Given array/list can contain duplicate elements.

(arr[i],arr[j]) and (arr[j],arr[i]) are considered same.
Problem approach

Step 1 : I applied O(n^2) approach firstly.
Step 2 : The interviewer asked to optimize but I cannot think at that moment.

Try solving now
04
Round
Medium
Face to Face
Duration45 minutes
Interview date9 Mar 2022
Coding problem2

It was a face to face interaction with Tech Lead. Most of the discussion was over Javascript and Reactjs to test my indepth knowledge of basics and advance concepts. Also, questions and discussion on arrays, strings, maps, optimization was there.
There were several questions on OOPS, javascript and reactjs.

1. Delete a Node from Linked List

Moderate
40m average time
67% success
0/80
Asked in companies
QualcommFreshworksSamsung

You have been given a linked list of integers. Your task is to write a function that deletes a node from a given position, 'POS'.

Note :
Assume that the Indexing for the linked list always starts from 0.

If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
Illustration :
The following images depict how the deletion has been performed.

Image-I :

Alt txt

Image-II :

Alt txt

Problem approach

Step 1 : I first applied the native approach to iterate and find the previous and next node and the delete the given node.
Step 2 : I was asked to optimize and since I know the optimization so I used the recursive approach.
Step 3 : The interviewer was impressed over this.

Try solving now

2. Puzzle

There are two jugs each of 4 and 3 liters respectively , without any measuring marks. how many minimum steps are required to have 2 liters of water into the 4 litre jug (the jugs can be filled any number of times with water, and they can be emptied any number of times). Here we need 2 litre water in 4 litre jug (not in any of the two jugs).

Problem approach

Tip 1 : Think of the problem calmly.
Tip 2 : Try to cancel out the possibilities so you can get more close to your solution.

05
Round
Easy
HR Round
Duration10 minutes
Interview date9 Mar 2022
Coding problem1

It was an easy round with the HR of the company. We had a normal discussion over my work and future expeditions and student life.

1. Basic HR Questions

How will you manage your work life in a new city?
How will you handle a critical work load situation if encountered?

Problem approach

Tip 1 : Be optimistic about your answers.
Tip 2 : Try showing confident and forward-looking prespective. 

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 recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
1 rounds | 1 problems
Interviewed by Bajaj Electricals Ltd
1653 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 1 problems
Interviewed by Bajaj Electricals Ltd
1835 views
1 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 5 problems
Interviewed by Bajaj Electricals Ltd
1517 views
0 comments
0 upvotes
company logo
Data Scientist
4 rounds | 5 problems
Interviewed by Bajaj Electricals Ltd
1812 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes