LTI (Larsen & Toubro Infotech ) Coding Questions and Solutions 2022-23
LTI Coding Questions and Solutions
LTI Latest Coding Question with Solutions Available Here
About LTI
Larsen & Toubro Infotech (LTI) Limited, headquartered in Mumbai, India, is an Indian multinational information technology services and consulting firm. LTI was recognized as the sixth-largest Indian IT services company in terms of export revenues by NASSCOM in 2017. According to the Everest Group's PEAK Matrix for IT service providers, it was among the top 15 IT service providers globally in 2017. It is a Maturity Level 5 organization that follows the Software Engineering Institute's (SEI) Capability Maturity Model Integration (CMMI) criteria.
About Recruitment Process :
The below elaborates the recruitment process for L&T Info-tech role. It comprises of 4 rounds :
1. Online Test :
The online test has the following sections :
- Psychometric
- Quantitative Aptitude
- Logical Reasoning
- Verbal Ability
- Technical
- Coding
- SQL Query
- Paragraph Writing
2. Group Discussion : This round is conducted only when the number of candidates who have cleared the online test is large. This round assesses the communication skills of the candidate.
3. Technical Interview :This round tests the fundamental knowledge in computer programming of the candidate. .Be thorough with some of the programs such as (palindrome, Fibonacci, prime, Swap of 2 without using 3rd variable, Greatest of 3 numbers)..and be ready with your internships and projects. Majority times technical and HR interview rounds are combined. Many of the technical questions are either related to C/C++/JAVA, Data Structure, Operating System or your core subjects, etc.
4. HR Interview : Majority times technical and HR interview rounds are combined. The candidate is asked questions related to my personal life, such as my hobbies, interests, strengths, and weaknesses, willingness to relocate, etc.
Here in this blog we discussed some LTI Coding Question, LTI Previously Asked Coding Question, LTI Coding Question 21-22, LTI coding Question java, LTI Coding Solutions LTI Spark coding questions lti coding questions 2023,lti online assessment questions,l&t technical test questions
LTI Latest coding Questions, LTI Code, LTL java Code, LTI Solutions.
Need More Coding Questions with Solutions ping me on Instagram : codingsolution75
Table of Contains:
Need More Coding Questions with Solutions ping me on Instagram : codingsolution75
LTI Question 1 : Company Discount
A Company is planning a big sale at which they will there customer special promotional discount. Each customer that parches a product from the company has a
Unique customer ID numbered from o to N-1 andy, the marketing head of n company has selected bill amount
of the N customers for the discount will be given to the customer whose bill amount are perfect squares of
The customer may use this discount on a future purchase.
Write an algorithm to help Andy find the number of customer that will be given discount.
Constraints
0 <= numOfCust <=10^6
0 <= bill(i) <= 10^6
0 <= i <= numberOfCust
Example
Input:
6
25 77 54 81 45 34
Output : 2
Write an algorithm to help Andy find the number of customer that will be given discount.
Constraints
0 <= numOfCust <=10^6
0 <= bill(i) <= 10^6
0 <= i <= numberOfCust
Example
Input:
6
25 77 54 81 45 34
Output : 2
import java.util.*; public class Main { public static boolean isEligible(int customer){ double sqrt=Math.sqrt(customer); return ((sqrt - Math.floor(sqrt)) == 0); } public static int countCustmer(int[] customers){ int c=0; for(int i=0; i<customers.length; i++){ if(isEligible(customers[i])) c++; } return c; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int totalCustomer = sc.nextInt(); int[] customers = new int[totalCustomer]; for(int i =0; i<totalCustomer; i++){ customers[i] = sc.nextInt(); } System.out.println(countCustmer(customers)); } }If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.
LTI Question 2 : Cipher Encryption
Encryption is needed to be done in important chats between army officers so that no one else can read it .
Encryption of message is done by replacing each letter with the letter at 3
positions to the left.
Example ‘a’ is replaced with ‘x. ‘b’ with ‘y’ … ‘d’ with ‘a’ and so on.
Given a encrypted input string find the corresponding plaintext and return the plaintext as output string.
Note:- All the characters are in the lower case of output strings.
Constraints :
1 <=cipher<=1000
Input Specification
input1: the ciphertext
Output Specification
Return the corresponding plaintext.
Example
Input
abcD
Output
xyzA
Example ‘a’ is replaced with ‘x. ‘b’ with ‘y’ … ‘d’ with ‘a’ and so on.
Given a encrypted input string find the corresponding plaintext and return the plaintext as output string.
Note:- All the characters are in the lower case of output strings.
Constraints :
1 <=cipher<=1000
Input Specification
input1: the ciphertext
Output Specification
Return the corresponding plaintext.
Example
Input
abcD
Output
xyzA
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String res =""; for(int i=0; i<str.length(); i++){ if(str.charAt(i) >= 97 && str.charAt(i)<=123 ) res+= (char)(96+(26-(122-(int)str.charAt(i)+3)%26)); else{ res+= (char)(64+(26-(90-(int)str.charAt(i)+3)%26)); } } System.out.println(res.toLowerCase()); } }If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.
LTI Question 3 : Numberland Research Institute
In Numberland, the main occupation of its citizens is to perform tasks on numbers. One such important task is finding interesting number sequences.
As per the Numberland Research institute, an interesting sequence is defined as a sequence of numbers that are consecutive, for instance: {10,11,12,13} is an interesting sequence but {2,5,8} is not. Mathematically, ni+1 = ni + 1
Now, citizens are given a set of distinct numbers to extract the length of the largest interesting sequence that can be obtained by rearranging numbers within the set.
Input Format:
Two lines.
First-line contains N, the length of the input sequence.
Second-line consists of space-separated N numbers, representing the set of numbers that must be analyzed.
Output Format:
A single integer represents the largest sequence of consecutive numbers obtained after rearranging the set.
Constrains:
9<= N <=1000
If ki be the ith element in the sequence. 1<= ki <=2000
Example 1:
Input:
11
5 4 3 2 1 11 10 14 13 12 9
Output:
6
Example 2:
Input:
19
24 73 90 25 82 51 23 21 22
Output:
5
Input Format:
Two lines.
First-line contains N, the length of the input sequence.
Second-line consists of space-separated N numbers, representing the set of numbers that must be analyzed.
Output Format:
A single integer represents the largest sequence of consecutive numbers obtained after rearranging the set.
Constrains:
9<= N <=1000
If ki be the ith element in the sequence. 1<= ki <=2000
Example 1:
Input:
11
5 4 3 2 1 11 10 14 13 12 9
Output:
6
Example 2:
Input:
19
24 73 90 25 82 51 23 21 22
Output:
5
import java.util.*; class Main{ public static int getSolutions(int n, int[] arr){ int len =0; int temp =1; Arrays.sort(arr); for(int i=0; i<n-1; i++){ if(arr[i] == arr[i+1]-1){ temp++; }else{ temp = 1; } len = temp>len ? temp : len; } return len; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] arr = new int[N]; for(int i=0; i<N; i++){ arr[i] = sc.nextInt(); } System.out.println(getSolutions(N,arr)); } }If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.
Next Question ...Coming Soon!...Refresh Page
Accenture Coding Questions & Answers 2022
Infosys Coding Questions & Answers 2022
Impatus Coding Questions & Answers 2022
MindTree Coding Questions & Answers 2022
Rakuten Coding Questions & Answers 2022
TCS NQT Coding Questions & Answers 2022
TCS Digital Coding Questions & Answers 2022
Epam Coding Questions & Answers 2022
LTI Coding Questions & Answere 2022
Please upload more solutions
ReplyDelete