Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Infosys SDE Interview Questions and Answers

Updated 23 Jan 2025

6 Interview questions

A SDE was asked 10mo ago
Q. What is annotation in Spring Boot?
Ans. 

Annotations in Spring Boot are used to provide metadata about the application's components, helping Spring to understand how to manage them.

  • Annotations are used to configure Spring Boot components such as controllers, services, repositories, etc.

  • Annotations help Spring Boot to automatically detect and configure beans based on the annotations used.

  • Examples of annotations in Spring Boot include @RestController, @Ser...

A SDE was asked
Q. 

Count Inversions Problem Statement

Given an integer array ARR of size N containing all distinct values, determine the total number of inversions present in the array.

An inversion is defined for a pair of...

Ans. 

Count the total number of inversions in an integer array.

  • Iterate through the array and for each pair of elements, check if the conditions for inversion are met.

  • Use a nested loop to compare each element with all elements to its right.

  • Keep a count of the inversions found and return the total count at the end.

SDE Interview Questions Asked at Other Companies

asked in Infosys
Q1. Return Subsets Sum to K Problem Statement Given an integer array ... read more
asked in Nagarro
Q2. Partition to K Equal Sum Subsets Problem Given an array of intege ... read more
asked in Nagarro
Q3. Sort a "K" Sorted Doubly Linked List Given a doubly-linked list w ... read more
asked in Amazon
Q4. Describe a scenario where you were given updates on repaired road ... read more
asked in Nagarro
Q5. Maximum Meetings Selection You are tasked with scheduling meeting ... read more
A SDE was asked
Q. 

Boundary Traversal of Binary Tree

Given a binary tree of integers, your task is to print the boundary nodes of the binary tree in an anti-clockwise direction starting from the root node.

Note:
The boundary ...
Ans. 

Boundary traversal of a binary tree in anti-clockwise direction starting from the root node.

  • Implement a function to calculate the boundary traversal of a binary tree

  • Include nodes from left boundary, leaf nodes, and right boundary in sequence

  • Ensure only unique nodes are included in the output

  • Print the boundary nodes separated by single spaces for each test case

A SDE was asked
Q. 

Bipartite Graph Problem

Check whether a given graph is bipartite or not. Return true if the graph's vertices can be divided into two independent sets, ‘U’ and ‘V’, such that every edge (‘u’, ‘v’) either co...

Ans. 

Check if a given graph is bipartite by dividing vertices into two independent sets.

  • Use BFS or DFS to traverse the graph and assign colors to vertices to check for bipartiteness.

  • If an edge connects vertices of the same color, the graph is not bipartite.

  • Return true if all edges connect vertices of different colors, else return false.

A SDE was asked
Q. 

Longest Increasing Subsequence Problem Statement

Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This ...

Ans. 

Find the length of the longest strictly increasing subsequence in an array of integers.

  • Use dynamic programming to keep track of the longest increasing subsequence ending at each element.

  • Initialize an array to store the length of the longest increasing subsequence ending at each index.

  • Iterate through the array and update the length of the longest increasing subsequence for each element.

  • Return the maximum value in t...

A SDE was asked
Q. 

Return Subsets Sum to K Problem Statement

Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

Explanation:

A subset of an array 'ARR' is a tuple...

Ans. 

Given an array and an integer, return all subsets that sum to the given integer.

  • Use backtracking to generate all possible subsets of the array.

  • For each subset, check if the sum equals the given integer 'K'.

  • Print the subsets that satisfy the condition.

  • Example: For input [1, 2, 3] and K=3, subsets [1, 2] and [3] have sum 3.

Infosys SDE Interview Experiences

4 interviews found

SDE Interview Questions & Answers

user image Kartik Saroha

posted on 14 Dec 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Job Portal and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Coding Test 

July online coding test consists of 3 question pretty medium level

Round 2 - Group Discussion 

July -economics ,good commumication skill checks

SDE Interview Questions & Answers

user image Piyush Bhati

posted on 5 Aug 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Tell me about your self
  • Ans. 

    I am a software engineer with 5 years of experience in developing web applications using Java, Spring Boot, and Angular.

    • 5 years of experience in software development

    • Proficient in Java, Spring Boot, and Angular

    • Strong problem-solving skills

    • Experience working in Agile development environment

  • Answered by AI
  • Q2. What is annotation in spring boot
  • Ans. 

    Annotations in Spring Boot are used to provide metadata about the application's components, helping Spring to understand how to manage them.

    • Annotations are used to configure Spring Boot components such as controllers, services, repositories, etc.

    • Annotations help Spring Boot to automatically detect and configure beans based on the annotations used.

    • Examples of annotations in Spring Boot include @RestController, @Service,...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Nice

Skills evaluated in this interview

SDE Interview Questions & Answers

user image Anonymous

posted on 17 May 2022

I appeared for an interview in Apr 2022.

Round 1 - Coding Test 

(3 Questions)

Round duration - 180 minutes
Round difficulty - Hard

There was 1 round of 180 minutes which contains of 3 questions from DSA. the two question was of medium level but one question is of neither difficult nor medium level question based on tree

  • Q1. 

    Longest Increasing Subsequence Problem Statement

    Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This...

  • Ans. 

    Find the length of the longest strictly increasing subsequence in an array of integers.

    • Use dynamic programming to keep track of the longest increasing subsequence ending at each element.

    • Initialize an array to store the length of the longest increasing subsequence ending at each index.

    • Iterate through the array and update the length of the longest increasing subsequence for each element.

    • Return the maximum value in the ar...

  • Answered by AI
  • Q2. 

    Bipartite Graph Problem

    Check whether a given graph is bipartite or not. Return true if the graph's vertices can be divided into two independent sets, ‘U’ and ‘V’, such that every edge (‘u’, ‘v’) either c...

  • Ans. 

    Check if a given graph is bipartite by dividing vertices into two independent sets.

    • Use BFS or DFS to traverse the graph and assign colors to vertices to check for bipartiteness.

    • If an edge connects vertices of the same color, the graph is not bipartite.

    • Return true if all edges connect vertices of different colors, else return false.

  • Answered by AI
  • Q3. 

    Count Inversions Problem Statement

    Given an integer array ARR of size N containing all distinct values, determine the total number of inversions present in the array.

    An inversion is defined for a pair o...

  • Ans. 

    Count the total number of inversions in an integer array.

    • Iterate through the array and for each pair of elements, check if the conditions for inversion are met.

    • Use a nested loop to compare each element with all elements to its right.

    • Keep a count of the inversions found and return the total count at the end.

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 50 minutes
Round difficulty - Medium

In interview I was asked about some question related to Data structures , DBMS . Some output based question was asked and 2 coding problems was given to solve.

  • Q1. 

    Return Subsets Sum to K Problem Statement

    Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

    Explanation:

    A subset of an array 'ARR' is a tupl...

  • Ans. 

    Given an array and an integer, return all subsets that sum to the given integer.

    • Use backtracking to generate all possible subsets of the array.

    • For each subset, check if the sum equals the given integer 'K'.

    • Print the subsets that satisfy the condition.

    • Example: For input [1, 2, 3] and K=3, subsets [1, 2] and [3] have sum 3.

  • Answered by AI
  • Q2. 

    Boundary Traversal of Binary Tree

    Given a binary tree of integers, your task is to print the boundary nodes of the binary tree in an anti-clockwise direction starting from the root node.

    Note:
    The boundary...
  • Ans. 

    Boundary traversal of a binary tree in anti-clockwise direction starting from the root node.

    • Implement a function to calculate the boundary traversal of a binary tree

    • Include nodes from left boundary, leaf nodes, and right boundary in sequence

    • Ensure only unique nodes are included in the output

    • Print the boundary nodes separated by single spaces for each test case

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE in PuneEligibility criteria60% in 12th & above 65% in B.techInfosys interview preparation:Topics to prepare for the interview - Data Structures, DBMS ,OOPS ,System Design, Algorithms, Dynamic Programming.Time required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 - Practice At least 250 Questions of DS algo
Tip 2 - Do at least 2 application based projects
Tip 3 - Practice questions with optimized approaches

Application resume tips for other job seekers

Tip 1 : Have some application based projects on resume.
Tip 2 : Do not put false things on resume.
Tip 3 : Project should clear and crisp

Final outcome of the interviewRejected

Skills evaluated in this interview

SDE Interview Questions & Answers

user image Anonymous

posted on 23 Jan 2025

Interview experience
3
Average
Difficulty level
Easy
Process Duration
6-8 weeks
Result
Selected Selected

I appeared for an interview before Jan 2024.

Round 1 - Aptitude Test 

General aptitide test

Round 2 - Coding Test 

Basic coding test like DSA

Interview Preparation Tips

Interview preparation tips for other job seekers - just have basic preparation

What people are saying about Infosys

View All
yedabhai
2d
works at
Hyperpure
Are we not even safe in our own workplaces?
An Infosys employee was arrested for secretly recording women in the office washroom. Over 30 videos were found on his phone. This isn't just shocking, it's horrifying. Offices are meant to be safe, respectful spaces. 🙎 When will companies truly prioritize safety and surveillance in all corners, not just the visible ones?
FeedCard Image
Got a question about Infosys?
Ask anonymously on communities.

Interview questions from similar companies

SDE Interview Questions & Answers

IBM user image Anonymous

posted on 3 Oct 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Easy to medium test was easily solvable

SDE Interview Questions & Answers

Genpact user image Anonymous

posted on 24 Sep 2023

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Basic MCQs on CS concepts

Round 3 - Technical 

(1 Question)

  • Q1. Resume based questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident with your resume and communication.

SDE Interview Questions & Answers

HCLTech user image Anonymous

posted on 16 Aug 2021

Interview Questionnaire 

1 Question

  • Q1. Introduction And Overview of Company
  • Ans. First introduced yourself with a little smile and before any interview go through the JD of the company, this will help you more. And one more thing that search about the interviewers who is going to take your interview.
  • Answered Anonymously
Are these interview questions helpful?

SDE Interview Questions & Answers

IBM user image Anonymous

posted on 22 Feb 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

Quantitative and Verbal

Round 2 - Coding Test 

2 Questions - DSA (Array and Numbers)

Round 3 - One-on-one 

(1 Question)

  • Q1. Projects mentioned in the resume and technical skills
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. 3 EMERGING TECHNOLOGIES

SDE Interview Questions & Answers

HCLTech user image Anonymous

posted on 29 Jun 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in May 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

Lit bit tougher as a beginner for quants like aptitude, verbal, and reasoning.

Round 2 - Coding Test 

They given 40 min for coding and , topics are below linked list , stacks

Round 3 - Coding Test 

They given 30 min for coding in topics of linked list , stacks

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn , learn , learn

Infosys Interview FAQs

How many rounds are there in Infosys SDE interview?
Infosys interview process usually has 1-2 rounds. The most common rounds in the Infosys interview process are Coding Test, Technical and Group Discussion.

Tell us how to improve this page.

Overall Interview Experience Rating

4.3/5

based on 4 interview experiences

Difficulty level

Easy 25%
Moderate 75%

Duration

Less than 2 weeks 25%
2-4 weeks 50%
6-8 weeks 25%
View more
Join Infosys Creating the next opportunity for people, businesses & communities

SDE Interview Questions from Similar Companies

TCS SDE Interview Questions
3.6
 • 13 Interviews
Accenture SDE Interview Questions
3.8
 • 10 Interviews
HCLTech SDE Interview Questions
3.5
 • 4 Interviews
IBM SDE Interview Questions
4.0
 • 3 Interviews
Genpact SDE Interview Questions
3.8
 • 2 Interviews
UST SDE Interview Questions
3.8
 • 2 Interviews
Wipro SDE Interview Questions
3.7
 • 1 Interview
View all
Infosys SDE Salary
based on 9 salaries
₹3.3 L/yr - ₹9.9 L/yr
60% less than the average SDE Salary in India
View more details

Infosys SDE Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

5.0

Skill development

5.0

Work-life balance

5.0

Salary

5.0

Job security

5.0

Company culture

5.0

Promotions

5.0

Work satisfaction

Explore 1 Review and Rating
Technology Analyst
54.7k salaries
unlock blur

₹4.8 L/yr - ₹10 L/yr

Senior Systems Engineer
53.8k salaries
unlock blur

₹2.5 L/yr - ₹6.3 L/yr

Technical Lead
35.1k salaries
unlock blur

₹9.4 L/yr - ₹16.4 L/yr

System Engineer
32.5k salaries
unlock blur

₹2.4 L/yr - ₹5.5 L/yr

Senior Associate Consultant
31.2k salaries
unlock blur

₹8.1 L/yr - ₹14 L/yr

Explore more salaries
Compare Infosys with

TCS

3.6
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview