Infosys Coding Interview Questions: 83 Tagged Problems
83 coding problems tagged Infosys — 74 easy · 9 medium — with solutions in 13 languages. Plus a 4-week study plan by topic.
- Problems: 83
- By difficulty: 74 easy · 9 medium
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
83 problems the CodeKairo catalogue tags as commonly asked in Infosys's coding rounds — 74 easy and 9 medium, no hard ones — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (40), Math (32) and Strings (26). CodeKairo's Infosys SE / DSE — Aptitude mock covers the Infosys Systems Engineer aptitude paper, which has to be respected section by section because each section is judged on its own. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Infosys, which CodeKairo is not affiliated with.
Infosys study plan by topic
40 of the 83 problems tagged Infosys over 4 weeks, about 13 h 50 min of solving, grouped by technique in the order they build on each other — Arrays, Strings, Hash Table and Counting and 14 more. It ends with the Infosys SE / DSE — Aptitude mock.
Week 1: Arrays, Strings, Hash Table
9 problems on Arrays, Strings and Hash Table, easiest first within each topic.
- Second Largest Element Easy
- Minimum Distance to the Target Element Easy
- Length of Last Word Easy
- Number of Segments in a String Easy
- To Lower Case Easy
- Remove Vowels from a String Easy
- Roman to Integer Easy
- Check if the Sentence Is Pangram Easy
- Count Common Words With One Occurrence Easy
Week 2: Counting, Math
10 problems on Counting and Math, easiest first within each topic.
- Valid Anagram Easy
- Ransom Note Easy
- Maximum Number of Balls in a Box Easy
- Sum of Unique Elements Easy
- Find Words That Can Be Formed by Characters Easy
- Ugly Number Easy
- Armstrong Number Easy
- Strong Number Easy
- Disarium Number Easy
- Factorial Trailing Zeroes Medium
Week 3: Two Pointers, Sliding Window, Prefix Sum +3
10 problems on Two Pointers, Sliding Window, Prefix Sum, Sorting, Binary Search and Matrix, easiest first within each topic.
- Reverse String Easy
- Remove Element Easy
- Union of Two Sorted Arrays Easy
- Common Elements in Three Sorted Arrays Easy
- Minimum Number of Platforms Medium
- Find the K-Beauty of a Number Easy
- Find the Pivot Integer Easy
- Wave Array Easy
- Find Transition Point Easy
- Find Missing and Repeated Values Easy
Week 4: Simulation, Enumeration, Recursion +4
11 problems on Simulation, Enumeration, Recursion, Heap, Bit Manipulation, Number Theory and Graph, easiest first within each topic.
- Decompress Run-Length Encoded List Easy
- Minimum Operations to Collect Elements Easy
- Number of Lines To Write String Easy
- Count Symmetric Integers Easy
- Fibonacci Number Easy
- Minimum Amount of Time to Fill Cups Easy
- Rings and Rods Easy
- Prime Factorisation Easy
- Find Greatest Common Divisor of Array Easy
- Sum Multiples Easy
- Find Champion I Easy
Finally: the timed test
Sit the Infosys SE / DSE — Aptitude mock under the clock — the coding problems are only one part of the round.
Infosys test patterns
- Infosys SE / DSE — Aptitude pattern guide and timed mock
- Infosys SP / DSE — Coding pattern guide and timed mock
All problems tagged Infosys
Easy (74)
- Type of Triangle Array, Math, Sorting
- Most Frequent Even Element Array, Hash Table, Counting
- Number of Senior Citizens Array, String
- Number of Changing Keys String
- Number of Beautiful Pairs Array, Hash Table, Math
- Kids With the Greatest Number of Candies Array
- Find Champion I Array, Matrix, Graph
- Prime In Diagonal Array, Math, Matrix
- Best Poker Hand Array, Hash Table, Counting
- Minimum Amount of Time to Fill Cups Array, Greedy, Math
- Sqrt(x) Math, Binary Search
- Find the K-Beauty of a Number Math, String, Sliding Window
- Shortest Word Distance Array, String, Two Pointers
- Pair With Given Difference Array, Two Pointers, Sorting
- Intersection of Multiple Arrays Array, Hash Table, Counting
- DI String Match Array, Two Pointers, Greedy
- Two Sum Less Than K Array, Two Pointers, Sorting
- Merge Two 2D Arrays by Summing Values Array, Two Pointers
- Find the K-or of an Array Bit Manipulation, Array
- Count Total Number of Colored Cells Math, Simulation
- Find the Maximum Divisibility Score Array, Math, Counting
- Construct the Rectangle Math, Number Theory
- Sum Multiples Math, Number Theory
- Find the Pivot Integer Math, Prefix Sum
- Number of Lines To Write String Array, String, Simulation
- Rings and Rods Hash Table, String, Bit Manipulation
- Find Words That Can Be Formed by Characters Hash Table, String, Counting
- Check if Binary String Has at Most One Segment of Ones String
- Most Common Word String, Hash Table
- Student Attendance Record I String
- Largest Substring Between Two Equal Characters String, Hash Table
- Sort the People Array, Sorting, Hash Table
- Left Rotate an Array by D Places Array, Two Pointers
- Find Missing and Repeated Values Matrix, Hash Table, Math
- Common Elements in Three Sorted Arrays Array, Two Pointers
- Find Transition Point Array, Binary Search
- Wave Array Array, Sorting
- Minimum Operations to Collect Elements Array, Hash Table, Simulation
- Maximum Ascending Subarray Sum Array
- Find the Difference of Two Arrays Array, Hash Table
- Sum of Unique Elements Array, Hash Table, Counting
- Number of Common Factors Math, Number Theory, Enumeration
- Count Symmetric Integers Math, Enumeration
- Account Balance After Rounded Purchase Math
- Maximum Number of Balls in a Box Math, Hash Table, Counting
- Sum of Digits in Base K Math
- First Letter to Appear Twice String, Hash Table
- Count Common Words With One Occurrence Array, String, Hash Table
- Replace All Digits with Characters String
- Remove Vowels from a String String
- To Lower Case String
- Union of Two Sorted Arrays Array, Two Pointers
- Minimum Distance to the Target Element Array
- Second Largest Element Array
- Difference Between Element Sum and Digit Sum of an Array Array, Math
- Remove Element Array, Two Pointers
- Number of Segments in a String String
- Check if the Sentence Is Pangram Hash Table, String
- Length of Last Word String
- Ransom Note Hash Table, String, Counting
- Decompress Run-Length Encoded List Array, Simulation
- Subtract the Product and Sum of Digits of an Integer Math
- Find Greatest Common Divisor of Array Array, Math, Number Theory
- Prime Factorisation Math, Number Theory
- Perfect Number Math
- Harshad Number Math
- Disarium Number Math
- Strong Number Math
- Armstrong Number Math
- Fibonacci Number Math, Dynamic Programming, Recursion
- Roman to Integer Hash Table, Math, String
- Ugly Number Math
- Valid Anagram Hash Table, String, Sorting
- Reverse String Two Pointers, String
Medium (9)
- Minimum Number of Steps to Make Two Strings Anagram II Hash Table, String, Counting
- Sum of Digit Differences of All Pairs Array, Hash Table, Math
- Magic Squares In Grid Array, Matrix, Simulation
- Find Three Consecutive Integers That Sum to a Given Number Math, Simulation
- Peak Index in a Mountain Array Array, Binary Search
- Minimum Consecutive Cards to Pick Up Array, Hash Table, Sliding Window
- Get Equal Substrings Within Budget String, Sliding Window, Binary Search
- Minimum Number of Platforms Array, Greedy, Sorting
- Factorial Trailing Zeroes Math
Topics Infosys asks most
- Arrays 40 problems
- Math 32 problems
- Strings 26 problems
- Hash Table 23 problems
- Counting 12 problems
- Two Pointers 11 problems
- Sorting 7 problems
- Number Theory 7 problems
- Simulation 6 problems
- Binary Search 4 problems
- Matrix 4 problems
- Greedy 4 problems