Infosys places a strong emphasis on clarity of logic, correctness, and structured problem-solving in its coding interviews. Whether you're applying through campus recruitment, HackWithInfy, InfyTQ, or experienced hiring, you’ll encounter questions that demand clean code and thoughtful solutions. These coding problems are designed to help you practice exactly that. You’ll solve problems similar to what Infosys often tests: output-based questions, logic-heavy loops, conditionals, and efficient handling of arrays or strings. Many problems involve constraints around input size, performance, and edge conditions, just like in the actual Infosys coding rounds. Rather than learning patterns in theory, you'll apply them under time pressure with auto-graded challenges. It’s practical prep for the structured thinking Infosys interviews are known to evaluate.
Infosys places a strong emphasis on clarity of logic, correctness, and structured problem-solving in its coding interviews. Whet...Show More
WHAT YOU'LL LEARN
How to approach logic-based coding questions commonly asked by Infosys and implement clear, efficient solutions.
Solving problems involving pattern printing, array transformations, and string operations.
Writing accurate solutions under time and memory constraints.
Practicing iterative, conditional, and simulation-based coding strategies.
Building code that is clear, testable, and easy to walk through with an interviewer.
How to approach logic-based coding questions commonly asked by Infosys and implement clear, efficient solutions.
Show more
Content
1.
Getting Started
2 Lessons
2.
Two Pointers
38 Lessons
Introduction to Two PointersValid PalindromeSolution: Valid Palindrome3SumSolution: 3SumRemove Nth Node from End of ListSolution: Remove Nth Node from End of ListSort ColorsSolution: Sort ColorsReverse Words in a StringSolution: Reverse Words in a StringValid Word AbbreviationSolution: Valid Word AbbreviationStrobogrammatic NumberSolution: Strobogrammatic NumberMinimum Number of Moves to Make PalindromeSolution: Minimum Number of Moves to Make PalindromeNext Palindrome Using Same DigitsSolution: Next Palindrome Using Same DigitsLowest Common Ancestor of a Binary Tree IIISolution: Lowest Common Ancestor of a Binary Tree IIICount Pairs Whose Sum is Less than TargetSolution: Count Pairs Whose Sum is Less than TargetCount Subarrays With Fixed BoundsSolution: Count Subarrays With Fixed BoundsGet the Maximum ScoreSolution: Get the Maximum ScoreFind the Lexicographically Largest String From Box IISolution: Find the Lexicographically Largest String From Box IICreate Maximum NumberSolution: Create Maximum NumberAppend Characters to String to Make SubsequenceSolution: Append Characters to String to Make SubsequenceSquares of a Sorted ArraySolution: Squares of a Sorted ArrayReverse StringSolution: Reverse StringValid Palindrome II
3.
Fast and Slow Pointers
21 Lessons
4.
Sliding Window
31 Lessons
5.
Intervals
18 Lessons
6.
In-Place Manipulation of a Linked List
26 Lessons
7.
Heaps
25 Lessons
8.
K-way merge
15 Lessons
9.
Top K Elements
37 Lessons
10.
Modified Binary Search
34 Lessons
11.
Subsets
14 Lessons
12.
Greedy Techniques
31 Lessons
13.
Backtracking
33 Lessons
14.
Dynamic Programming
40 Lessons
15.
Cyclic Sort
12 Lessons
16.
Topological Sort
18 Lessons
17.
Sort and Search
31 Lessons
18.
Matrices
37 Lessons
19.
Stacks
28 Lessons
20.
Graphs
31 Lessons
21.
Tree Depth-First Search
35 Lessons
22.
Tree Breadth-First Search
24 Lessons
23.
Trie
30 Lessons
24.
Hash Maps
40 Lessons
25.
Knowing What to Track
32 Lessons
26.
Union Find
28 Lessons
27.
Custom Data Structures
32 Lessons
28.
Bitwise Manipulation
32 Lessons
29.
Math and Geometry
37 Lessons
30.
Challenge Yourself
40 Lessons
31.
Conclusion
1 Lessons
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources