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

SDE - 1

LTI - Larsen & Toubro Infotech
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: Data Structures, DBMS, OOPS, Algorithms, Dynamic Programming, SQL
Tip
Tip

Tip 1 : Keep learning and practice daily.
Tip 2 : Ask seniors about their journey.

Application process
Where: Campus
Eligibility: 6.5 CGPA
Resume Tip
Resume tip

Tip 1 : Have some projects on resume and be ready to answer anything surrounding that.
Tip 2 : Don't fake any skillset you have.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration70 minutes
Interview date24 Jul 2020
Coding problem2

Technical Questions and two coding questions were asked in this round.

1. Longest Bitonic Sequence

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonMicrosoftWells Fargo

A Bitonic Sequence is a sequence of numbers that is first strictly increasing and then strictly decreasing.


A strictly ascending order sequence is also considered bitonic, with the decreasing part as empty, and same for a strictly descending order sequence.


For example, the sequences [1, 3, 5, 3, 2], [1, 2, 3, 4] are bitonic, whereas the sequences [5, 4, 1, 4, 5] and [1, 2, 2, 3] are not.


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


Find the length of the longest bitonic subsequence of 'arr'.


Example :
Input: 'arr' = [1, 2, 1, 2, 1]

Output: 3

Explanation: The longest bitonic subsequence for this array will be [1, 2, 1]. Please note that [1, 2, 2, 1] is not a valid bitonic subsequence, because the consecutive 2's are neither strictly increasing, nor strictly decreasing.
Problem approach

n=int(input())

arr = list(map(int,input().split()))

tokens = [1]*n

for i in range(1,n):

for j in range(i):

if (arr[i] < arr[j] and tokens[i] < tokens[j] + 1):

tokens[i] = tokens[j] + 1

print(max(tokens))

Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
HCL TechnologiesCiti BankAtlassian

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

The idea is to traverse every array element and find the highest bars on the left and right sides. Take the smaller of two heights. The difference between the smaller height and the height of the current element is the amount of water that can be stored in this array element.

Try solving now
02
Round
Medium
Online Coding Test
Duration45 minutes
Interview date24 Jul 2020
Coding problem1

It was a simple DS Based round. Only one coding question was asked in this round

1. Maximum Difference

Moderate
30m average time
85% success
0/80
Asked in companies
MicrosoftExpedia GroupHike

Given an n x n matrix mat[n][n] of integers, find the maximum value of mat[c][d] – mat[a][b] over all choices of indexes such that both c > a and d > b.

Example:-

1 2 3 4 
5 6 7 8
1 9 2 3

In this example, the maximum value is 8 (mat[2][1]-mat[0][0]).
Problem approach

n=int(input())

arr=list(map(int,input().split()))

m=-9999999

for i in range(n-1):

for j in range(i+1,n):

m=max(m,arr[j]-arr[i])

print(m)

Try solving now
03
Round
Medium
Face to Face
Duration45 minutes
Interview date24 Jul 2020
Coding problem1

It was a Technical round purely based on DBMS, Some basic questions about DBMS were asked

1. DBMS

  • What is the difference between OLAP and OLPT?
  • What is the Relationship?
  • What is data abstraction in DBMS?
  • What are joins?
Problem approach

Tip 1 : Learn the concepts of DBMS.
Tip 2 : Read from online resources and practice well for SQL queries also study on optimising queries.

04
Round
Easy
HR Round
Duration30 minutes
Interview date27 Jul 2020
Coding problem1

It was a Basic HR round some basic HR Questions were asked

1. Basic HR Question

  • Tell me about yourself
  • What are your strength and weakness?
  • Are you willing to relocate?
  • How challenging was it to acquire all the skills you mentioned in your resume?
Problem approach

Tip 1 : Try to speak fluently

Tip 2 : Be honest and reply with confidence

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
SDE - 1
4 rounds | 8 problems
Interviewed by LTI - Larsen & Toubro Infotech
1015 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by LTI - Larsen & Toubro Infotech
2709 views
3 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by LTI - Larsen & Toubro Infotech
797 views
0 comments
0 upvotes
SDE - 1
3 rounds | 4 problems
Interviewed by LTI - Larsen & Toubro Infotech
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6365 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2198 views
0 comments
0 upvotes