Airtel interview experience Real time questions & tips from candidates to crack your interview

SDE - 2

Airtel
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I applied in Airtel X Labs Company on Naukri for SDE-2 profile and got shortlisted for the interview. Total interview rounds: 2 There are 2 technical rounds and one managerial round which you need to clear in order to get into the company.
Application story
I applied on Naukri and got shortlisted for the first interview which went for 1 hr next day I got the news that I have another round 4 days later I went for another round and got shortlisted for the Hr discussion and got the offer.
Why selected/rejected for the role?
got shortlisted because I was consistently preparing for the role and working on my fundamentals and core learning, also basic coding questions I was practising. Java 8 is must with good knowledge of Threading.
Preparation
Duration: 2-4 months
Topics: Data Structures, Algorithms, Java 8, Sql, Spring Boot
Tip
Tip

Tip 1 : Prepare fundamental theory well
Tip 2 : Prepare Easy and medium level questions
Tip 3 : Go through you resume well

Application process
Where: Campus
Eligibility: B.Tech/M.Tech
Resume Tip
Resume tip

Tip 1 : Make your resume relevant
Tip 2 : Mention projects

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date25 Mar 2022
Coding problem2

1. Reverse words in a string

Easy
10m average time
90% success
0/40
Asked in companies
UnacademyIBMOptum

You are given a string 'str' of length 'N'.


Your task is to reverse the original string word by word.


There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.


Example :
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Problem approach

String[] strArray = s.split(" ");
String ans = "";
for(int i = strArray.length - 1; i >= 0 ; i--){
if(strArray[i].trim() == ""){
continue;
}
ans = ans + " " + strArray[i];
}

return ans.substring(1).trim();

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
HCL TechnologiesInformaticaSamsung

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Try solving now
02
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date28 Mar 2022
Coding problem1

1. OOPS questions

Implement a last-in-first-out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal stack (push, top, pop, and empty).

Implement the MyStack class:

void push(int x) Pushes element x to the top of the stack.
int pop() Removes the element on the top of the stack and returns it.
int top() Returns the element on the top of the stack.
boolean empty() Returns true if the stack is empty, false otherwise.

Problem approach

private Queue queue = new LinkedList<>();

public void push(int x) {
queue.add(x);
for(int i = 1;i queue.add(queue.remove());
}
}

public int pop() {
return queue.remove();
}

public int top() {
return queue.peek();
}

public boolean empty() {
return queue.isEmpty(); 
}

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
Lead Software Engineer
5 rounds | 4 problems
Interviewed by Airtel
1312 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Airtel
2136 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Airtel
1784 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 11 problems
Interviewed by Airtel
1711 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6677 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5175 views
0 comments
0 upvotes