InfosysLeetCode Questions
VerifiedCompany-wise coding interview questions asked by Infosys, ranked by real frequency across 30-day, 3-month, and 6-month recency windows.
# | Problem | Difficulty | Frequency↓ | Acceptance | |
|---|---|---|---|---|---|
| #1 | Two Sum3 sources | Easy | 100% | 57.8% | |
| #3 | Medium | 93% | 39.4% | ||
| #121 | Best Time to Buy and Sell Stock3 sources | Easy | 82% | 57.0% | |
| #53 | Maximum Subarray3 sources | Medium | 81% | 53.5% | |
| #176 | Medium | 78% | 47.5% | ||
| #9 | Palindrome Number3 sources | Easy | 77% | 60.7% | |
| #3336 | Hard | 77% | 32.3% | ||
| #560 | Subarray Sum Equals K3 sources | Medium | 77% | 47.7% | |
| #134 | Gas Station3 sources | Medium | 75% | 48.3% | |
| #5 | Longest Palindromic Substring3 sources | Medium | 75% | 38.2% | |
| #20 | Valid Parentheses3 sources | Easy | 75% | 44.5% | |
| #2940 | Hard | 75% | 52.4% | ||
| #242 | Valid Anagram3 sources | Easy | 75% | 68.3% | |
| #3457 | Eat Pizzas!3 sources | Medium | 75% | 33.6% | |
| #3467 | Transform Array by Parity3 sources | Easy | 75% | 89.9% | |
| #3575 | Maximum Good Subtree Score3 sources | Hard | 75% | 45.7% | |
| #14 | Longest Common Prefix3 sources | Easy | 75% | 47.9% | |
| #2338 | Count the Number of Ideal Arrays3 sources | Hard | 75% | 56.9% | |
| #3449 | Maximize the Minimum Game Score3 sources | Hard | 75% | 26.6% | |
| #2612 | Minimum Reverse Operations3 sources | Hard | 75% | 17.2% | |
| #1872 | Stone Game VIII3 sources | Hard | 75% | 54.2% | |
| #1946 | Medium | 75% | 38.3% | ||
| #1124 | Longest Well-Performing Interval3 sources | Medium | 75% | 37.9% | |
| #2233 | Maximum Product After K Increments3 sources | Medium | 75% | 44.1% | |
| #3165 | Hard | 75% | 15.8% | ||
| #2382 | Maximum Segment Sum After Removals3 sources | Hard | 75% | 49.9% | |
| #2418 | Sort the People3 sources | Easy | 75% | 84.8% | |
| #2457 | Medium | 75% | 38.8% | ||
| #2463 | Minimum Total Distance Traveled3 sources | Hard | 75% | 63.1% | |
| #2445 | Number of Nodes With Value One3 sources | Medium | 75% | 66.3% | |
| #1540 | Can Convert String in K Moves3 sources | Medium | 75% | 37.8% | |
| #2597 | The Number of Beautiful Subsets3 sources | Medium | 75% | 50.9% | |
| #2829 | Medium | 75% | 61.0% | ||
| #1798 | Medium | 75% | 64.3% | ||
| #2827 | Hard | 75% | 23.0% | ||
| #2834 | Medium | 75% | 34.9% | ||
| #198 | House Robber3 sources | Medium | 72% | 53.4% | |
| #11 | Container With Most Water3 sources | Medium | 68% | 60.4% | |
| #49 | Group Anagrams3 sources | Medium | 68% | 72.9% | |
| #70 | Climbing Stairs3 sources | Easy | 68% | 54.2% | |
| #283 | Move Zeroes3 sources | Easy | 68% | 64.1% | |
| #3901 | Good Subsequence Queries3 sources | Hard | 68% | 20.2% | |
| #31 | Next Permutation3 sources | Medium | 65% | 45.6% | |
| #56 | Merge Intervals3 sources | Medium | 65% | 52.3% | |
| #3640 | Trionic Array II3 sources | Hard | 65% | 47.3% | |
| #3661 | Maximum Walls Destroyed by Robots3 sources | Hard | 65% | 48.0% | |
| #3971 | Maximum Total Value3 sources | Hard | 65% | 30.3% | |
| #15 | 3Sum3 sources | Medium | 63% | 39.4% | |
| #42 | Trapping Rain Water3 sources | Hard | 63% | 67.7% | |
| #322 | Coin Change3 sources | Medium | 63% | 48.7% | |
| #3637 | Trionic Array I3 sources | Easy | 63% | 49.5% | |
| #994 | Rotting Oranges3 sources | Medium | 63% | 59.0% | |
| #3653 | Medium | 63% | 73.3% | ||
| #3655 | Hard | 63% | 47.7% | ||
| #3671 | Sum of Beautiful Subsequences3 sources | Hard | 63% | 31.6% | |
| #3939 | Hard | 63% | 56.1% | ||
| #26 | Remove Duplicates from Sorted Array3 sources | Easy | 63% | 63.2% | |
| #200 | Number of Islands3 sources | Medium | 63% | 64.7% | |
| #509 | Fibonacci Number3 sources | Easy | 63% | 74.3% | |
| #22 | Generate Parentheses3 sources | Medium | 63% | 78.9% | |
| #2259 | Easy | 63% | 48.6% | ||
| #48 | Rotate Image3 sources | Medium | 63% | 80.4% | |
| #54 | Spiral Matrix3 sources | Medium | 63% | 57.2% | |
| #238 | Product of Array Except Self3 sources | Medium | 63% | 69.1% | |
| #122 | Best Time to Buy and Sell Stock II3 sources | Medium | 56% | 71.3% | |
| #875 | Koko Eating Bananas3 sources | Medium | 56% | 50.2% | |
| #860 | Lemonade Change2 sources | Easy | 56% | 0.6% | |
| #21 | Merge Two Sorted Lists3 sources | Easy | 52% | 68.5% | |
| #72 | Edit Distance3 sources | Medium | 52% | 60.9% | |
| #189 | Rotate Array3 sources | Medium | 52% | 45.2% | |
| #215 | Kth Largest Element in an Array3 sources | Medium | 52% | 69.1% | |
| #151 | Reverse Words in a String3 sources | Medium | 52% | 57.0% | |
| #18 | 4Sum3 sources | Medium | 52% | 41.1% | |
| #76 | Minimum Window Substring3 sources | Hard | 52% | 47.9% | |
| #141 | Linked List Cycle3 sources | Easy | 52% | 54.7% | |
| #303 | Range Sum Query - Immutable3 sources | Easy | 52% | 72.7% | |
| #162 | Find Peak Element3 sources | Medium | 52% | 47.1% | |
| #347 | Top K Frequent Elements3 sources | Medium | 52% | 66.8% | |
| #410 | Split Array Largest Sum3 sources | Hard | 52% | 60.9% | |
| #300 | Longest Increasing Subsequence3 sources | Medium | 52% | 59.7% | |
| #1838 | Medium | 52% | 45.0% | ||
| #403 | Frog Jump2 sources | Hard | 52% | 0.5% | |
| #2 | Add Two Numbers3 sources | Medium | 50% | 48.8% | |
| #7 | Reverse Integer3 sources | Medium | 50% | 32.1% | |
| #88 | Merge Sorted Array3 sources | Easy | 50% | 55.2% | |
| #125 | Valid Palindrome3 sources | Easy | 50% | 53.7% | |
| #912 | Sort an Array3 sources | Medium | 50% | 55.9% | |
| #128 | Longest Consecutive Sequence3 sources | Medium | 50% | 47.2% | |
| #33 | Search in Rotated Sorted Array3 sources | Medium | 50% | 45.2% | |
| #704 | Binary Search3 sources | Easy | 50% | 61.1% | |
| #92 | Reverse Linked List II3 sources | Medium | 50% | 51.9% | |
| #319 | Bulb Switcher3 sources | Medium | 50% | 56.1% | |
| #155 | Min Stack3 sources | Medium | 50% | 58.4% | |
| #12 | Integer to Roman3 sources | Medium | 50% | 71.2% | |
| #344 | Reverse String3 sources | Easy | 50% | 81.0% | |
| #78 | Subsets3 sources | Medium | 50% | 82.5% | |
| #34 | Medium | 50% | 49.3% | ||
| #232 | Implement Queue using Stacks3 sources | Easy | 47% | 70.1% | |
| #583 | Delete Operation for Two Strings3 sources | Medium | 47% | 65.9% | |
| #10 | Regular Expression Matching3 sources | Hard | 47% | 31.2% | |
| #1929 | Concatenation of Array3 sources | Easy | 47% | 90.2% | |
| #6 | Zigzag Conversion3 sources | Medium | 47% | 54.5% | |
| #135 | Candy3 sources | Hard | 47% | 48.8% | |
| #46 | Permutations3 sources | Medium | 47% | 82.1% | |
| #1004 | Max Consecutive Ones III3 sources | Medium | 47% | 68.0% | |
| #424 | Medium | 47% | 60.1% | ||
| #131 | Palindrome Partitioning3 sources | Medium | 47% | 74.3% | |
| #852 | Peak Index in a Mountain Array3 sources | Medium | 47% | 66.8% | |
| #329 | Longest Increasing Path in a Matrix2 sources | Hard | 47% | 0.6% | |
| #132 | Palindrome Partitioning II2 sources | Hard | 47% | 0.4% | |
| #152 | Maximum Product Subarray2 sources | Medium | 47% | 0.4% | |
| #2279 | Medium | 47% | 0.7% | ||
| #91 | Decode Ways2 sources | Medium | 47% | 0.4% | |
| #25 | Reverse Nodes in k-Group3 sources | Hard | 40% | 66.6% | |
| #104 | Maximum Depth of Binary Tree3 sources | Easy | 40% | 78.4% | |
| #13 | Roman to Integer3 sources | Easy | 40% | 66.8% | |
| #73 | Set Matrix Zeroes3 sources | Medium | 40% | 63.3% | |
| #142 | Linked List Cycle II3 sources | Medium | 40% | 58.5% | |
| #153 | Find Minimum in Rotated Sorted Array3 sources | Medium | 40% | 55.0% | |
| #992 | Subarrays with K Different Integers3 sources | Hard | 40% | 68.6% | |
| #3184 | Easy | 40% | 78.3% | ||
| #2163 | Hard | 40% | 69.6% | ||
| #77 | Combinations3 sources | Medium | 40% | 74.8% | |
| #1094 | Car Pooling3 sources | Medium | 40% | 56.4% | |
| #516 | Longest Palindromic Subsequence3 sources | Medium | 40% | 65.7% | |
| #44 | Wildcard Matching3 sources | Hard | 40% | 32.3% | |
| #525 | Contiguous Array3 sources | Medium | 40% | 51.7% | |
| #213 | House Robber II3 sources | Medium | 40% | 45.2% | |
| #51 | N-Queens3 sources | Hard | 40% | 76.0% | |
| #217 | Contains Duplicate3 sources | Easy | 40% | 64.5% | |
| #55 | Jump Game3 sources | Medium | 40% | 41.2% | |
| #179 | Largest Number3 sources | Medium | 40% | 43.3% | |
| #64 | Minimum Path Sum3 sources | Medium | 40% | 68.5% | |
| #918 | Maximum Sum Circular Subarray3 sources | Medium | 40% | 50.7% | |
| #268 | Missing Number3 sources | Easy | 40% | 72.3% | |
| #1963 | Medium | 40% | 0.8% | ||
| #123 | Best Time to Buy and Sell Stock III2 sources | Hard | 40% | 0.5% | |
| #69 | Sqrt(x)3 sources | Easy | 38% | 42.1% | |
| #167 | Two Sum II - Input Array Is Sorted3 sources | Medium | 38% | 65.4% | |
| #2149 | Rearrange Array Elements by Sign3 sources | Medium | 38% | 84.7% | |
| #1378 | Easy | 38% | 83.6% | ||
| #28 | Easy | 38% | 46.9% | ||
| #196 | Easy | 38% | 66.3% | ||
| #234 | Palindrome Linked List3 sources | Easy | 38% | 58.3% | |
| #392 | Is Subsequence3 sources | Easy | 38% | 49.2% | |
| #541 | Reverse String II3 sources | Easy | 38% | 54.1% | |
| #1922 | Count Good Numbers3 sources | Medium | 38% | 57.9% | |
| #450 | Delete Node in a BST3 sources | Medium | 38% | 55.0% | |
| #1910 | Medium | 38% | 78.6% | ||
| #50 | Pow(x, n)3 sources | Medium | 38% | 38.9% | |
| #3539 | Hard | 38% | 61.7% | ||
| #2872 | Hard | 38% | 74.0% | ||
| #258 | Add Digits3 sources | Easy | 38% | 69.1% | |
| #1235 | Maximum Profit in Job Scheduling3 sources | Hard | 38% | 54.8% | |
| #840 | Magic Squares In Grid3 sources | Medium | 38% | 55.2% | |
| #120 | Triangle3 sources | Medium | 38% | 59.9% | |
| #30 | Hard | 38% | 34.7% | ||
| #143 | Reorder List3 sources | Medium | 38% | 65.7% | |
| #1819 | Hard | 38% | 46.4% | ||
| #150 | Evaluate Reverse Polish Notation3 sources | Medium | 38% | 58.2% | |
| #84 | Largest Rectangle in Histogram3 sources | Hard | 38% | 50.3% | |
| #977 | Squares of a Sorted Array3 sources | Easy | 38% | 73.9% | |
| #67 | Add Binary3 sources | Easy | 38% | 58.3% | |
| #3666 | Hard | 38% | 45.1% | ||
| #739 | Daily Temperatures3 sources | Medium | 38% | 68.9% | |
| #32 | Longest Valid Parentheses3 sources | Hard | 38% | 39.1% | |
| #1498 | Medium | 38% | 49.1% | ||
| #41 | First Missing Positive3 sources | Hard | 38% | 43.2% | |
| #328 | Odd Even Linked List3 sources | Medium | 38% | 62.6% | |
| #75 | Sort Colors3 sources | Medium | 38% | 70.0% | |
| #1376 | Time Needed to Inform All Employees3 sources | Medium | 38% | 60.5% | |
| #175 | Easy | 38% | 79.7% | ||
| #169 | Majority Element3 sources | Easy | 38% | 66.4% | |
| #1768 | Merge Strings Alternately3 sources | Easy | 38% | 82.1% | |
| #2680 | Maximum OR3 sources | Medium | 38% | 43.4% | |
| #1752 | Check if Array Is Sorted and Rotated3 sources | Easy | 38% | 57.5% | |
| #209 | Minimum Size Subarray Sum3 sources | Medium | 38% | 52.2% | |
| #124 | Binary Tree Maximum Path Sum3 sources | Hard | 38% | 42.5% | |
| #35 | Search Insert Position3 sources | Easy | 38% | 51.7% | |
| #763 | Partition Labels3 sources | Medium | 38% | 82.0% | |
| #207 | Course Schedule3 sources | Medium | 38% | 51.8% | |
| #224 | Basic Calculator3 sources | Hard | 38% | 47.0% | |
| #532 | K-diff Pairs in an Array3 sources | Medium | 38% | 46.1% | |
| #206 | Reverse Linked List3 sources | Easy | 38% | 80.8% | |
| #315 | Count of Smaller Numbers After Self3 sources | Hard | 38% | 43.8% | |
| #740 | Delete and Earn3 sources | Medium | 38% | 57.4% | |
| #643 | Maximum Average Subarray I3 sources | Easy | 38% | 48.4% | |
| #349 | Easy | 38% | 78.0% | ||
| #628 | Easy | 38% | 46.1% | ||
| #767 | Medium | 38% | 57.3% | ||
| #231 | Easy | 38% | 50.3% | ||
| #658 | Medium | 38% | 49.9% | ||
| #841 | Medium | 38% | 76.0% | ||
| #8 | Medium | 38% | 21.3% | ||
| #3987 | Medium | 31% | 0.2% | ||
| #101 | Symmetric Tree2 sources | Easy | 31% | 0.6% | |
| #2251 | Number of Flowers in Full Bloom2 sources | Hard | 31% | 0.6% | |
| #197 | Easy | 31% | 0.5% | ||
| #907 | Sum of Subarray Minimums2 sources | Medium | 31% | 0.4% | |
| #1081 | Medium | 31% | 0.7% | ||
| #1856 | Maximum Subarray Min-Product2 sources | Medium | 31% | 0.4% | |
| #279 | Perfect Squares2 sources | Medium | 31% | 0.6% | |
| #27 | Remove Element2 sources | Easy | 31% | 0.6% | |
| #1341 | Medium | 31% | 0.4% | ||
| #4 | Median of Two Sorted Arrays2 sources | Hard | 31% | 0.5% | |
| #735 | Asteroid Collision2 sources | Medium | 31% | 0.5% | |
| #2653 | Sliding Subarray Beauty2 sources | Medium | 31% | 0.4% | |
| #714 | Medium | 31% | 0.7% | ||
| #1049 | Last Stone Weight II2 sources | Medium | 31% | 0.6% | |
| #1029 | Two City Scheduling2 sources | Medium | 31% | 0.7% | |
| #1749 | Maximum Absolute Sum of Any Subarray2 sources | Medium | 31% | 0.7% | |
| #871 | Minimum Number of Refueling Stops2 sources | Hard | 31% | 0.4% | |
| #188 | Best Time to Buy and Sell Stock IV2 sources | Hard | 31% | 0.5% | |
| #518 | Coin Change II2 sources | Medium | 31% | 0.6% | |
| #1221 | Split a String in Balanced Strings2 sources | Easy | 31% | 0.9% | |
| #1005 | Easy | 31% | 0.5% | ||
| #1510 | Stone Game IV2 sources | Hard | 31% | 0.7% | |
| #327 | Count of Range Sum2 sources | Hard | 31% | 0.4% | |
| #343 | Integer Break2 sources | Medium | 31% | 0.6% | |
| #16 | 3Sum Closest2 sources | Medium | 31% | 0.5% | |
| #17 | Medium | 31% | 0.7% | ||
| #523 | Continuous Subarray Sum2 sources | Medium | 31% | 0.3% | |
| #1438 | Medium | 31% | 0.6% | ||
| #453 | Medium | 31% | 0.6% | ||
| #312 | Burst Balloons2 sources | Hard | 31% | 0.6% | |
| #1217 | Easy | 31% | 0.7% | ||
| #3702 | Medium | 31% | 0.6% | ||
| #1710 | Maximum Units on a Truck2 sources | Easy | 31% | 0.8% |
Infosys Technical Interview Overview & Company-Wise Questions
Software engineering and technical interviews at Infosys emphasize real-world problem solving, algorithmic efficiency, and scalable data structure design. The curated dataset above contains 228 verified LeetCode problems, categorized by frequency and filtered across recent interview seasons.
Frequently Asked Questions
What are the top LeetCode questions for Infosys?
Leading questions include Two Sum, Longest Substring Without Repeating Characters, Best Time to Buy and Sell Stock. Reviewing questions with higher recency (within the last 30 to 90 days) yields the highest return on preparation time.
Where can I practice company-wise LeetCode questions for Infosys?
You can practice all 228 Infosys LeetCode questions right here on LeetMap Pro. Filter by 30-day, 3-month, and 6-month recency, track your progress with local checkpoints, and practice curated SQL problems completely free.
How should I prepare for Infosys coding rounds?
Begin by reviewing Medium-difficulty problems (121 tracked), which constitute the majority of technical rounds. Complement coding practice with foundational DSA patterns like Sliding Window, Two Pointers, and Graph Traversal.