Now practice all your interviews before giving the real one
( Infosys interview questions )
15 questions candidates report from Infosys interviews, grouped by topic, with a short note on how to answer each kind. Then say your answers out loud in a practice interview.
5 minutes, no CV needed. A practice round, not Infosys's own.
Our bank holds 112 coding questions that candidates report from Infosys interviews. The topics that come up most: arrays & hashing (24), math & bits (14), dynamic programming, 1-D (11) and two pointers (11). Of the 112 coding questions, 33 are easy, 69 medium and 10 hard.
Our data covers coding questions for Infosys; it says nothing about their other rounds, so we don't guess. These are practice questions based on what candidates report on public, community-kept lists, each written in our own words. RoundAlpha is not linked to Infosys.
( Questions )
Two SumEasy
Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.
Longest Leading MatchEasy
Given an array of strings strs, return the longest sequence of leading characters that appears at the beginning of every string.
Slices That Sum to KMedium
Given a list of integers nums and an integer k, return how many slices of nums add up to exactly k.
Longest Unique StretchMedium
Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.
Best Day to SellEasy
prices[i] is the price of one share on day i. You may buy one share on one day and sell it on a later day.
Longest Palindrome InsideMedium
You are given a string s. Return the longest piece of it — a run of letters that sit next to each other in s — that reads the same forwards and backwards (a palindrome).
Best Slice SumMedium
You are given a list of whole numbers, nums, some of which may be negative. A slice is a run of one or more numbers that sit next to each other in the list.
Climbing StairsEasy
A staircase has n steps. Each move takes you up either 1 step or 2 steps. Return the number of different sequences of moves that take you from the bottom to exactly the top step.
Check Digit SymmetryEasy
Given an integer x, return true if its digits read identically from left to right and from right to left, and false otherwise.
Rotate a GridMedium
You are given an n × n grid of numbers. Turn it a quarter turn clockwise and return it: the top row becomes the right-hand column, the right-hand column becomes the bottom row, and so on round.
Balanced BracketsEasy
A string s is made only of the characters ( ) [ ] { }. Return true if every opening bracket is closed by a bracket of the same kind, and the brackets close in the right order.
Gas StationMedium
Petrol stations stand on a circular road, numbered 0 to n − 1.
Biggest Water TankMedium
A row of walls stands on flat ground, one metre apart; height[i] is the height of wall i.
Three That Sum to ZeroMedium
Given a list of integers nums, return every triple of values, taken from three different positions, that adds up to 0.
Count IslandsMedium
You are given a map of the sea as a grid of "1"s and "0"s: "1" is land and "0" is water. An island is a group of land cells joined up, down, left or right.
Want to write the code too? The Infosys list on our coding practice page runs your answer against hidden tests, in six languages.
Questions
Our bank holds 112 coding questions that candidates report from Infosys interviews. The topics that come up most: arrays & hashing (24), math & bits (14), dynamic programming, 1-D (11) and two pointers (11). This page shows 15 of them, grouped by topic.
Of the 112 coding questions, 33 are easy, 69 medium and 10 hard. The level you meet depends on the role and your experience, so practise easy and medium ones until you can explain them out loud, then add hard ones.
They are practice questions based on what candidates report from Infosys interviews on public, community-kept lists. Each one is written in our own words. RoundAlpha is not linked to Infosys, and no list can promise what a given interviewer will ask.
Yes. A new account you sign up for yourself gets one short free practice interview. Name Infosys as the company and the interviewer leans its questions toward that company. You can choose "No CV this time", so no CV is needed. You talk out loud and get a scored report at the end.
Read next
Ready when you are
A short practice interview with Infosys named as the company, then a scored report on every answer.
5 minutes, no CV needed. A practice round, not Infosys's own.