i
Infosys
Filter interviews by
Clear (1)
I appeared for an interview in Apr 2021.
Round duration - 90 Minutes
Round difficulty - Medium
Ninja is in space with unlimited fuel in his super spaceship. He starts with a health level H
and his spaceship has an armour A
. Ninja can be on only one of the three planets...
Determine the maximum time Ninja can survive in a space survival game challenge.
Create a function that takes initial health and armour as input for each test case
Simulate Ninja's movement between planets and update health and armour accordingly
Keep track of the maximum time Ninja can survive before health or armour reaches 0
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from start to finish.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid loops.
Return all valid paths sorted in alphabetical order.
Round duration - 90 Minutes
Round difficulty - Medium
Given an undirected graph as an adjacency matrix and an integer M
, determine whether you can color the vertices of the graph using at most M
colors such that no two adjacent v...
The M-Coloring problem involves coloring the vertices of a graph using at most M colors such that no two adjacent vertices share the same color.
Check if the graph can be colored using at most M colors without adjacent vertices sharing the same color.
Use backtracking or graph coloring algorithms to solve the problem efficiently.
Ensure that the number of colors used is less than or equal to M.
Consider constraints such as...
The city of Ninjaland is represented as an unweighted graph with houses and roads. There are 'N' houses numbered 1 to 'N', connected by 'M' bidirectional roads. A road...
The task is to find the shortest path from a starting house to a destination house in an unweighted graph representing a city.
Implement a function to find the shortest path from house 'S' to house 'T' in an unweighted graph.
Use a graph traversal algorithm like Breadth First Search (BFS) to find the shortest path.
Return a list of house numbers indicating the shortest path from 'S' to 'T'.
Check if the output path is vali...
Tip 1 : Solve competitive programming questions regularly.
Tip 2 : Work on some live projects
Tip 1 : Have some good skills
Tip 2 : Show some live projects
I appeared for an interview in Mar 2021.
Round duration - 180 Minutes
Round difficulty - Medium
Round 1 - Coding Contest on HackerEarth (Elimination round)
Number of questions - 3 ( Level - leetcode Medium)
You are given a string S
. Your task is to partition S
such that every substring of the partition is a palindrome. Your objective is to return all possible palindr...
Partition a string into palindromes
Use backtracking to generate all possible palindrome partitions
Check if each substring is a palindrome before adding to the partition
Return all valid partitions as an array of strings
You are given an array/list NUM
of integers. Your task is to rearrange the elements of NUM
such that no two adjacent elements are the same, or determine if it is not ...
The task is to rearrange an array such that no two adjacent elements are the same.
Iterate through the array and check if any adjacent elements are the same
If adjacent elements are the same, swap one of them with a different element
Repeat the process until all adjacent elements are different
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...
The task is to determine the total number of ways to make change for a specified value using given denominations of coins.
Create a dynamic programming table to store the number of ways to make change for each value up to the target value.
Iterate through each denomination and update the table accordingly based on the current denomination.
The final value in the table will represent the total number of ways to make change...
Tip 1 : Try to cover all the most asked interview questions for each topic
Tip 2 : Read previous year interview experiences
Tip 3 : Focus on your communication skills
Tip 1 : Keep your resume of 1 page
Tip 2 : Mention 2-3 descent projects
I appeared for an interview in Feb 2021.
Round duration - 90 minutes
Round difficulty - Medium
first round was mcq based on aptitude,dbms and output based questions
theory questions and SQL
DBMS theory questions and SQL
DBMS stands for Database Management System
SQL is a standard language for accessing and manipulating databases
Normalization is the process of organizing data in a database
Primary keys uniquely identify each record in a table
Foreign keys establish relationships between tables
Round duration - 90 minutes
Round difficulty - Medium
it was coding as well as mcq round
Given a 2D array ARR
with 'N' rows and 'M' columns, where each element is either 0 or 1, your task is to transform this matrix into a 'Good' matrix. A 'Good' matrix is one i...
Transform a 2D array into a 'Good' matrix by setting rows and columns to 0 if a 0 is found.
Iterate through the matrix to find 0s
For each 0 found, set all elements in its row and column to 0
Update the input matrix accordingly
Round duration - 15 minutes
Round difficulty - Easy
Round duration - 180 minutes
Round difficulty - Easy
Given a 2D matrix, your task is to create and return a 2D vector that contains all elements of the matrix arranged in a diagonal fashion.
The first line con...
The task is to create and return a 2D vector containing diagonal elements of a given 2D matrix.
Iterate through the matrix diagonally to extract elements
Store the elements in a 2D vector in the required order
Handle cases where the matrix is not square by adjusting the diagonal traversal
Round duration - 25 minutes
Round difficulty - Easy
It was in the late afternoon since it was virtual location and environment didn't affected that much, interviewer was very friendly he asked how my day went and then went on starting with my introduction.
Tip 1 : Make at-least 2-3 projects and know those projects inside out, need to have complete understanding of how the project works and how things are working inside project
Tip 2 : Practice DSA at-least 200 questions.
Tip 3 : Practice aptitude and reasoning questions.
Tip 1: Don't write anything fake in resume
Tip 2: Don't make resume too lengthy.
Tip 3: Have some projects on resume.
I appeared for an interview in Jan 2021.
Round duration - 180 Minutes
Round difficulty - Medium
This round consists of objective and hands-on questions that are needed to be answered within 3 hours. You have to score 65% or above in this round to be eligible for a job interview at Infosys.
You are provided with an array of strings, and your objective is to determine the number of unique strings within it.
A string is deeme...
Given an array of strings, determine the number of unique strings that cannot be transformed into another string by swapping characters at odd or even indices.
Iterate through each string in the array and check if it can be transformed into another string by swapping characters at odd or even indices.
Keep track of unique strings that cannot be transformed and return the count.
Example: For array = ["abcd", "cbad", "bdac"...
Implement a function that determines whether a given numeric string contains any substring whose integer value equals the product of two consecutive integers. The functio...
Implement a function to determine if a numeric string contains a substring whose value equals the product of two consecutive integers.
Iterate through all possible substrings of the input string.
Calculate the integer value of each substring and check if it equals the product of two consecutive integers.
Return 'True' if such a substring is found, otherwise return 'False'.
Round duration - 180 Minutes
Round difficulty - Hard
This exam has 3 coding Questions – Easy( 50 points), Medium (75 points), Hard (100 points), total 225 points, and the points are assigned according to the number of test cases you pass
Given an array of integers ARR
of size N, consisting of 0s and 1s, you need to select a sub-array and flip its bits. Your task is to return the maximum count of 1s that can b...
Given an array of 0s and 1s, find the maximum count of 1s by flipping a sub-array at most once.
Iterate through the array and keep track of the maximum count of 1s seen so far.
If the current element is 0, consider flipping the sub-array from the previous 1 to the current 0.
Update the maximum count of 1s if flipping the sub-array results in a higher count.
Return the maximum count of 1s obtained after considering all poss
You have an infinite number of electric bulbs, each assigned a unique integer starting from 1. There are 'N' switches, each labeled with a unique prime number. When a switc...
Given an array of prime numbers representing switches and an integer K, find the Kth glowing bulb when all switches are turned on.
Iterate through each prime number in the array and calculate the number of bulbs that will glow for each prime number.
Keep track of the total number of glowing bulbs as you iterate through the array.
Once the total number of glowing bulbs exceeds or equals K, calculate the Kth glowing bulb ba...
Round duration - 45 Minutes
Round difficulty - Medium
Basic Introduction and detailed discussion on the projects, after that i was given some basic coding problems and after that some discussion on Oops and detailed discussion on Database,
Interviewer was cool and being supportive so overall it was a good experience.
Tip 1 : Never answer any question that you do not know, try to answer as precisely as you can
Tip 2 : Prepare your resume, they can any thing from that and you can't deny that you don't know
Tip 3 : Projects increase your chances so prepare atleast two
Tip 1 : Be honest, make sure what are you mentioning on it, one false information can leads to disqualification
Tip 2 : Projects are mandatory, basically it reflects your practical skills so focus on this part.
Tip 3 : Any experience like an internship would be appreciated.
Infosys interview questions for designations
I appeared for an interview in Oct 2020.
Round duration - 180 minutes
Round difficulty - Easy
Timing :- They conducted test in day time on weekends.
Problems :- Round consist of 3 coding problems.
Environment :- Test was web proctored.
Other :- Only 1 problem is needed to clear this round.
You are given two integers DAY_HOURS
and PARTS
. Consider a day with DAY_HOURS
hours, which can be divided into PARTS
equal parts. Your task is to determine the total ins...
Calculate total instances of equivalent prime groups in a day divided into equal parts.
Divide the day into equal parts and find prime numbers in each part.
Identify prime groups with prime numbers at the same position in different parts.
Count the total instances of equivalent prime groups.
Ensure DAY_HOURS is divisible by PARTS and handle constraints.
Return the number of equivalent prime groups for each test case.
Round duration - 180 minutes
Round difficulty - Medium
Timing :- 10 a.m. - 1 p.m. ( 3 hours )
Problems :- 3 coding problems were in this round ( Easy, Medium, Hard ) basis. You can not check the submission results in this round. So, can't be sure whether solution you submitted is correct or not. PPI oppurtunity for roles in infosys (SE, SES, Power Programmer) were based on this round.
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
Find minimum time to rot all fresh oranges adjacent to rotten oranges in a grid.
Use Breadth First Search (BFS) to simulate the rotting process
Keep track of the time taken to rot all fresh oranges
Return -1 if not all fresh oranges can be rotten
Round duration - 50 minutes
Round difficulty - Medium
After getting the PPI offer from Infosys and waiting for long 2 months. On 12th October my interview was scheduled, it was a 1 hour interview 12 noon - 1 p.m. Interview was conducted on Infosys Meridian ( Infosys Own Platform ). A meeting id was provided in mail, and we can not join before interviewer. HR contact number was provided in mail.
Interview begin :-
Interviewer :- Good afternoon, So tell me something about your family forget about your acdemics now. ( He was trying to make me comfortable ).
Me :- Told about my family, what they are doing and something about myself.
Interviewer :- You are from electrical, then why you preferred coding instead of going Navratna Electrical companies ( Bhel, NTPC)
Me :- I started coding from 2nd year and i found myself more interested in this. So, i just followed my passion.
Interviewer :- In which programming language are you comfortable ?
Me :- C++
Interviewer :- Why?
Me :- Because its faster than Java and Python and easy to implement. And i take part in competitive programming contest on Codechef, Codeforces so, C++ consists of Standard Template Library which is beneficial.
Interviewer:- What is this pointer?
Me:- This pointer represents to the current object in a class.
Then he asked few more question on C++ ( difference between call be value and call be reference, namespace, some C++ libraries)
Interviewer:- In which CSE topics are you comfortable?
Me:- DS and Algo, OOPS
Interviewer:- Can you write some queries?
Me:- I practised one day before few SQL queries but i was not confident. So, dont want to give a try I answered "No sir".
Interviewer:- What is flux?
Me:- Magnetic flux passing through a unit area.
Then he start asking few more question form electrical core. I was not able to answer. I said him I am not good in electrical core. I am more interested to solve any DS/Algo question.
Interviewer:- Make a doubly linked list of 5 elements and apply merge sort on it. He asked me to share the screen and open any of my favourite online editor.
Me:- I coded on Codechef-IDE. First dicuss the logic with him and then coded witn explaining him each line. Th code run successfully and Interviwer seems to satisfy.
Then, he pasted a piece of code in Python in a doc sheet and send me. He asked me to solve that problem. It was based on concepts of OOPS. Consisting of 3 classes and relation of Inheritance, Copy constructor, Parameterised Constructor was there in that problem. I step by step solve that problem and gave final output to interviewer. Interviewer was satisfied with output and said it was correct.
Interviewer:- I am done with interviewer. I check your coding knowledge. Do you have any questions for me?
Me:- Asked about training process in infosys.
Verdict:- Selected
Sort a given singly linked list of integers using the 'Merge Sort' algorithm.
The first and only line of input contains the elements of the linked list sep...
MergeSort algorithm is used to sort a singly linked list of integers in ascending order.
Implement the MergeSort algorithm to recursively divide the linked list into two halves, sort them, and then merge them back together.
Use a slow and fast pointer technique to find the middle of the linked list for splitting.
Ensure to handle the base cases of empty list or single node list.
Example: For input '10 3 5 -1', the output s
Tip 1 : Go through your resume properly and mention only those points in which you are comfortable to answer.
Tip 2 : Prepare interview question on any one programming language properly
Tip 3 : Be prepared with any one of your project ( if done )
Tip 1 : Have at least one project or experience in your resume.
Tip 2 : Do not put false things on your resume.
Get interview-ready with Top Infosys Interview Questions
ACID properties are a set of properties that ensure database transactions are processed reliably.
ACID stands for Atomicity, Consistency, Isolation, and Durability.
Atomicity ensures that a transaction is treated as a single, indivisible unit of work.
Consistency ensures that a transaction brings the database from one valid state to another.
Isolation ensures that concurrent transactions do not interfere with each other.
Du...
Thrashing is a phenomenon in OS where excessive paging occurs, leading to a decrease in system performance.
Occurs when the system is overcommitted with too many processes or tasks
Causes excessive swapping of pages between RAM and disk
Can be resolved by adding more RAM or reducing the number of processes
Can be identified by monitoring page fault rates
NOSQL databases are non-relational databases that store and retrieve data in a flexible and scalable manner.
NOSQL stands for 'Not Only SQL'
They are designed to handle large volumes of unstructured or semi-structured data
They offer high scalability and availability
Examples include MongoDB, Cassandra, and Couchbase
I appeared for an interview in Nov 2020.
Program to check if a number is a palindrome or not.
Convert the number to a string
Reverse the string
Compare the reversed string with the original string
If they are the same, the number is a palindrome
Sum of even numbers in an array
Loop through the array and check if each element is even
If even, add it to a running sum
Return the sum
I applied via Company Website and was interviewed before Dec 2019. There were 4 interview rounds.
I applied via Company Website and was interviewed before Dec 2019. There were 4 interview rounds.
I applied via Company Website and was interviewed in Jun 2019. There were 5 interview rounds.
What people are saying about Infosys
based on 1 interview
2 Interview rounds
based on 8 reviews
Rating in categories
Technology Analyst
55.3k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.7k
salaries
| ₹2.8 L/yr - ₹7.8 L/yr |
System Engineer
39.6k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.9k
salaries
| ₹5.1 L/yr - ₹19.6 L/yr |
Senior Associate Consultant
28.2k
salaries
| ₹6.2 L/yr - ₹16.6 L/yr |
TCS
Wipro
Cognizant
Accenture