i
Infosys
Filter interviews by
I applied via LinkedIn and was interviewed before Apr 2023. There was 1 interview round.
Rotate array by k positions to the right
Create a temporary array to store elements that will be rotated
Shift elements to the right by k positions
Copy elements from temporary array back to original array
Intersection point of 2 linked lists can be found by comparing the lengths and adjusting the starting points.
Traverse both lists to find their lengths
Adjust the starting point of the longer list to match the length of the shorter list
Traverse both lists in parallel until the intersection point is found
Merge sort is a divide and conquer algorithm that recursively divides the array into halves and merges them in sorted order.
Divide the array into two halves
Recursively merge sort each half
Merge the sorted halves back together
To rotate a matrix by 90 degrees, transpose the matrix and then reverse each row.
Transpose the matrix by swapping matrix[i][j] with matrix[j][i]
Reverse each row of the transposed matrix
Infosys interview questions for designations
I applied via Approached by Company and was interviewed before Apr 2023. There was 1 interview round.
Get interview-ready with Top Infosys Interview Questions
I applied via Campus Placement
Questions on your preferred programming language.
Java test coding test Java javascript
Interfaces in Java define a contract for classes to implement certain methods and provide a way to achieve abstraction.
Interfaces are declared using the 'interface' keyword in Java.
All methods in an interface are abstract by default and do not have a method body.
Classes can implement interfaces using the 'implements' keyword.
Interfaces can be used to achieve multiple inheritance in Java.
Example: public interface Shape
Common design patterns are reusable solutions to common problems in software design.
Creational patterns: Singleton, Factory, Builder
Structural patterns: Adapter, Decorator, Facade
Behavioral patterns: Observer, Strategy, Template Method
I applied via Job Portal and was interviewed before Sep 2023. There were 2 interview rounds.
Aptitude test was good
Final keyword in Java is used to restrict the user from changing the value of a variable, making it a constant.
Final keyword can be applied to variables, methods, and classes
Final variables must be initialized and cannot be reassigned
Final methods cannot be overridden in subclasses
Final classes cannot be subclassed
Static keyword in Java is used to create class-level variables and methods that can be accessed without creating an instance of the class.
Static variables are shared among all instances of a class
Static methods can be called without creating an object of the class
Static blocks are used to initialize static variables
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS is a way of organizing and designing code around objects
Objects have properties (attributes) and methods (functions)
Encapsulation, inheritance, and polymorphism are key concepts in OOPS
Examples of OOPS languages include Java, C++, and Python
Recursion is a process of calling a function within itself.
Recursion is useful for solving problems that can be broken down into smaller sub-problems.
It involves a base case and a recursive case.
Examples include factorial, Fibonacci sequence, and binary search.
Recursion can be memory-intensive and may cause stack overflow errors.
Tail recursion optimization can be used to optimize recursive functions.
What people are saying about Infosys
3 Interview rounds
based on 419 reviews
Rating in categories
Technology Analyst
56k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.1k
salaries
| ₹2.8 L/yr - ₹6.4 L/yr |
System Engineer
39.2k
salaries
| ₹2.5 L/yr - ₹6 L/yr |
Technical Lead
30.6k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.5k
salaries
| ₹6.2 L/yr - ₹16.8 L/yr |
TCS
Wipro
Cognizant
Accenture