Infosys Coding Interview Questions

158 DSA problems tagged as asked in Infosys coding interviews and online assessments. Below are the first 100 of 158: 42 easy, 24 medium and 34 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Infosys DSA problems, easiest first

  1. Add Digits (Easy)
  2. Average Time of Process per Machine (Easy)
  3. Best Time to Buy and Sell Stock (Easy)
  4. Binary Search (Easy)
  5. Climbing Stairs (Easy)
  6. Concatenation of Array (Easy)
  7. Count Pairs That Form a Complete Day I (Easy)
  8. Delete Duplicate Emails (Easy)
  9. Fibonacci Number (Easy)
  10. Find the Index of the First Occurrence in a String (Easy)
  11. Implement Queue using Stacks (Easy)
  12. Intersection of Two Arrays (Easy)
  13. Is Subsequence (Easy)
  14. Kids With the Greatest Number of Candies (Easy)
  15. Linked List Cycle (Easy)
  16. Longest Common Prefix (Easy)
  17. Maximum Depth of Binary Tree (Easy)
  18. Maximum Product of Three Numbers (Easy)
  19. Merge Sorted Array (Easy)
  20. Merge Two Sorted Lists (Easy)
  21. Missing Number (Easy)
  22. Move Zeroes (Easy)
  23. Palindrome Linked List (Easy)
  24. Palindrome Number (Easy)
  25. Pascal's Triangle (Easy)
  26. Power of Two (Easy)
  27. Range Sum Query - Immutable (Easy)
  28. Remove Digit From Number to Maximize Result (Easy)
  29. Remove Duplicates from Sorted Array (Easy)
  30. Replace Employee ID With The Unique Identifier (Easy)
  31. Reverse String (Easy)
  32. Reverse String II (Easy)
  33. Roman to Integer (Easy)
  34. Sort the People (Easy)
  35. Sqrt(x) (Easy)
  36. Squares of a Sorted Array (Easy)
  37. Transform Array by Parity (Easy)
  38. Trionic Array I (Easy)
  39. Two Sum (Easy)
  40. Valid Anagram (Easy)
  41. Valid Palindrome (Easy)
  42. Valid Parentheses (Easy)
  43. Bulb Switcher (Medium)
  44. Coin Change (Medium)
  45. Combination Sum (Medium)
  46. Combination Sum II (Medium)
  47. Contiguous Array (Medium)
  48. Delete Node in a BST (Medium)
  49. Delete Operation for Two Strings (Medium)
  50. Edit Distance (Medium)
  51. Find First and Last Position of Element in Sorted Array (Medium)
  52. Group Anagrams (Medium)
  53. Longest Increasing Subsequence (Medium)
  54. Longest Palindromic Subsequence (Medium)
  55. Maximum Subarray (Medium)
  56. Merge Intervals (Medium)
  57. Minimum Addition to Make Integer Beautiful (Medium)
  58. Next Greater Element III (Medium)
  59. Pow(x, n) (Medium)
  60. Product of Array Except Self (Medium)
  61. Reverse Integer (Medium)
  62. Rotate Image (Medium)
  63. Search in Rotated Sorted Array (Medium)
  64. Spiral Matrix (Medium)
  65. Subarray Sum Equals K (Medium)
  66. Top K Frequent Elements (Medium)
  67. Candy (Hard)
  68. Count the Number of Ideal Arrays (Hard)
  69. Find Building Where Alice and Bob Can Meet (Hard)
  70. Find Sum of Array Product of Magical Sequences (Hard)
  71. Find the Number of Subsequences With Equal GCD (Hard)
  72. Largest Rectangle in Histogram (Hard)
  73. Maximize the Minimum Game Score (Hard)
  74. Maximum Good Subtree Score (Hard)
  75. Maximum Number of K-Divisible Components (Hard)
  76. Maximum Profit in Job Scheduling (Hard)
  77. Maximum Score Words Formed by Letters (Hard)
  78. Maximum Segment Sum After Removals (Hard)
  79. Maximum Sum of Subsequence With Non-adjacent Elements (Hard)
  80. Maximum Walls Destroyed by Robots (Hard)
  81. Median of Two Sorted Arrays (Hard)
  82. Minimum Difference in Sums After Removal of Elements (Hard)
  83. Minimum Reverse Operations (Hard)
  84. Minimum Total Distance Traveled (Hard)
  85. Minimum Window Substring (Hard)
  86. Number of Beautiful Integers in the Range (Hard)
  87. Number of Different Subsequences GCDs (Hard)
  88. Partition Array Into Two Arrays to Minimize Sum Difference (Hard)
  89. Regular Expression Matching (Hard)
  90. Reverse Nodes in k-Group (Hard)
  91. Sliding Window Maximum (Hard)
  92. Split Array Largest Sum (Hard)
  93. Stone Game VIII (Hard)
  94. Subarrays with K Different Integers (Hard)
  95. Substring with Concatenation of All Words (Hard)
  96. Sum of Beautiful Subsequences (Hard)
  97. Trapping Rain Water (Hard)
  98. Trionic Array II (Hard)
  99. Wildcard Matching (Hard)
  100. XOR After Range Multiplication Queries II (Hard)

Prepare for the rest of the Infosys process

Other companies