LTI - Larsen & Toubro Infotech interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

LTI - Larsen & Toubro Infotech
upvote
share-icon
3 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Journey
Larsen and Toubro Infotech appeared to our college for campus placements. First there was an aptitude and reasoning round which was conducted online. After that there were 1 to 3 rounds.of coding. Those who clear 1st round will get 5LPA. Those who clear 2nd round will get 6.5LPA and those who clear 3rd round will get 8LPA. Interview was very easy for some and for some of them it was hard. It would depend upon the interviewer. Some of the interviewers would ask for codes but most of them only asked theoretical parts. For me they just asked me theoretical parts. But they onboarded us after 10 months which was pretty late. They waited for us to complete our graduation. After getting onboarded they gave courses to study and internal coding rounds were conducted during training period. 3 months of training and you will become permanent employee of Larsen and Toubro Infotech(now LTIMindtree after merger).
Application story
Our college placement cell sent a link for application. It was a customized link for our college. One aptitude round was conducted and three coding round. Those who cleared 1st coding round secured 5 LPA. Those who cleared 2nd coding round secured 6.5 LPA and those who cleared 3rd coding round secured 8 LPA. After that, a technical interview was scheduled where they asked theoretical questions. After one month I received an offer letter from Larsen and Toubro Infotech.
Why selected/rejected for the role?
I think I was selected because I answered all their questions and asked them in the end what I should learn before joining if I am selected. This gives the impression that the student is eager to learn.
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPS, SQL, DBMS, C, Java
Tip
Tip

Tip 1 : Project is a must. Try to do some project in Machine Learning so that you can confuse the interviewer as they don't know Machine Learning. They will mostly not ask questions from Machine Learning topics.
Tip 2 : Prepare DSA basics. At least theory.
Tip 3 : At the end when the interviewer asks if you have any questions for them. Then ask what kind of work we will do if I get selected or what technology stack should I learn if I get selected. This gives the impression that the student is eager to learn.

Application process
Where: Campus
Eligibility: 6.5 CGPA and above and no backlog. B.Tech CSE/IT/ECE will be able to apply.
Resume Tip
Resume tip

Tip 1: Include a machine learning project.
Tip 2: Include some simple certifications just for namesake.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration50 minutes
Interview date20 Sep 2021
Coding problem3

1. Find the output.

int main(){   

 int a=12,b=39;   

 printf ("%d",a&b);   

 return 0;}

(a). 468

(b). 0

(c). 4

(d). None of the above.

Problem approach

Find binary of 12 and 39 which is 1100 and 100111 respectively. Apply AND operation on the binary values:

001100
& 100111
-----------------
000100

100 in binary is equivalent to 4. So option (c) is correct.

2. What is the output of following program?

# include void fun(int x){    x = 30;}

 int main(){ 

 int y = 20; 

 fun(y);  

printf("%d", y); 

 return 0;}

(a) 30

(b) 20

(c) Compiler Error

(d) Runtime Error

Problem approach

Parameters are always passed by value in C. Therefore, in the above code, value of y is not modified using the function fun(). So answer will be option (b).

3. Why the following statement is erroneous?

SELECT dept_name, ID, avg (salary)FROM instructorGROUP BY dept_name;

(a) Dept_id should not be used in group by clause

(b) Group by clause is not valid in this query

(c) Avg(salary) should not be selected

(d) None

Problem approach

Any property that does not occur in the group by clause must only appear in an aggregate function if it also appears in the select clause; otherwise, the query is considered incorrect. 
Option (a) is correct.

02
Round
Medium
Online Coding Test
Duration45 minutes
Interview date21 Sep 2021
Coding problem2

1. Count Derangements

Moderate
25m average time
75% success
0/80
Asked in companies
MicrosoftMAQ SoftwareLTI - Larsen & Toubro Infotech

Given a number ‘N', the task is to find the total number of derangements of a set of ‘N’ elements.

A ‘Derangement’ is a permutation of 'N' elements, such that no element appears in its original position. For example, a derangement of {0, 1, 2, 3} is {2, 3, 1, 0}.

For example, 'N' = 2 , {0, 1} and {1, 0} are the only derangement therefore output will be 1.

Problem approach

Let countDer(n) be count of derangements for n elements. Below is the recursive relation to it. 

countDer(n) = (n - 1) * [countDer(n - 1) + countDer(n - 2)]

There are n – 1 way for element 0 (this explains multiplication with n – 1). 
Let 0 be placed at index i. There are now two possibilities, depending on whether or not element i is placed at 0 in return. 

i is placed at 0: This case is equivalent to solving the problem for n-2 elements as two elements have just swapped their positions.
i is not placed at 0: This case is equivalent to solving the problem for n-1 elements as now there are n-1 elements, n-1 positions and every element has n-2 choices

Try solving now

2. SQL Question

You want to sort the results of a query by specific parts of a string. For example, you want to return employee names and jobs from table EMP and sort by the last twocharacters in the JOB field. The result set should look like the following:ENAME JOB---------- ---------KING PRESIDENTSMITH CLERKADAMS CLERKJAMES CLERKMILLER CLERKJONES MANAGERCLARK MANAGERBLAKE MANAGERALLEN SALESMANMARTIN SALESMANWARD SALESMANTURNER SALESMANSCOTT ANALYSTFORD ANALYST

Problem approach

select ename,job
from emp
order by substring(job,len(job)-1,2)

Using your DBMS’s substring function, you can easily sort by any part of a string. To sort by the last two characters of a string, find the end of the string (which is the length of the string) and subtract two. The start position will be the second to last character in the string. You then take all characters after that start osition. SQL Server’s SUBSTRING is different from the SUBSTR function as it requires a third parameter that specifies how many characters to take. In this example, any number greater than or equal to two will work.

03
Round
Medium
Video Call
Duration25 minutes
Interview date22 Oct 2021
Coding problem4

1. DFS Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
SamsungIntuitGoldman Sachs

Given an undirected and disconnected graph G(V, E), containing 'V' vertices and 'E' edges, the information about edges is given using 'GRAPH' matrix, where i-th edge is between GRAPH[i][0] and GRAPH[i][1]. print its DFS traversal.

V is the number of vertices present in graph G and vertices are numbered from 0 to V-1. 

E is the number of edges present in graph G.
Note :
The Graph may not be connected i.e there may exist multiple components in a graph.
Problem approach

Just learn concept and explain.

Try solving now

2. OOPS

What is inheritance? What is the difference between multiple inheritance and and multilevel inheritance?

What is abstraction?

Problem approach

Just learn definition and explain.

3. DBMS

What are joins and types of joins?

Problem approach

Just learn definition and explain.

4. SQL Question

You want to find the highest and lowest values in a given column. For example, you
want to find the highest and lowest salaries for all employees, as well as the highest
and lowest salaries for each department.

Problem approach

select deptno, min(sal) as min_sal, max(sal) as max_sal
from emp
group by deptno ;

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Software Engineer
2 rounds | 7 problems
Interviewed by LTI - Larsen & Toubro Infotech
1017 views
0 comments
0 upvotes
Software Engineer
5 rounds | 5 problems
Interviewed by LTI - Larsen & Toubro Infotech
737 views
0 comments
0 upvotes
Software Engineer
2 rounds | 5 problems
Interviewed by LTI - Larsen & Toubro Infotech
1045 views
0 comments
0 upvotes
Software Engineer
4 rounds | 5 problems
Interviewed by LTI - Larsen & Toubro Infotech
688 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3266 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2643 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes