Infosys Array Coding Interview Questions
56 array coding problems are tagged as asked at Infosys in interviews and online assessments reported by candidates. By difficulty they split into 18 basic, 29 intermediate and 9 advanced. The topics they most often combine with are Sorting, Hash Table, Sliding Window, Greedy.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Infosys tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Contains Duplicate (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Search Insert Position (Basic)
- Rotate Array (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Kth Largest Element (Intermediate)
- Majority Element (Basic)
- Missing Number (Basic)
- Intersection of Two Arrays (Basic)
- Two Sum in a Sorted Array (Basic)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Sort Colors (Basic)
- Squares of a Sorted Array (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Peak Index in a Mountain Array (Intermediate)
- Concatenation of an Array (Basic)
- Merge Intervals (Intermediate)
- Candy Distribution (Advanced)
- Maximum Product of Three (Basic)
- Find K Closest Elements (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Maximum Circular Subarray (Intermediate)
- Best Time to Buy and Sell Stock II (Intermediate)
- House Robber II (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Course Schedule Feasible (Intermediate)
- Weighted Job Scheduling (Intermediate)
- Keys and Rooms (Basic)
- Delete and Earn (Intermediate)
- Min Stack Operations (Basic)
- Longest Well-Performing Interval (Advanced)
- 3Sum Triplets (Intermediate)
- Find First and Last Position (Intermediate)
- Check if Array Is Sorted and Rotated (Basic)
- Count the Number of Ideal Arrays (Advanced)
- Stone Game VIII (Advanced)
- Minimum Total Distance Traveled (Advanced)
- Rearrange Array Elements by Sign (Basic)
- Implement Queue Using Stacks (Basic)
- Maximum Product After K Increments (Intermediate)
Related
- Infosys coding interview questions
- Array problems
- Infosys basic problems
- Infosys intermediate problems
- Infosys advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Infosys problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Infosys interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.