Visa Coding Interview Questions

124 DSA problems tagged as asked in Visa coding interviews and online assessments. Below are the first 100 of 124: 32 easy, 48 medium and 20 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Visa DSA problems, easiest first

  1. Add Binary (Easy)
  2. Add Digits (Easy)
  3. Add Strings (Easy)
  4. Alternating Digit Sum (Easy)
  5. Balanced Binary Tree (Easy)
  6. Best Time to Buy and Sell Stock (Easy)
  7. Check if Array Is Sorted and Rotated (Easy)
  8. Contains Duplicate (Easy)
  9. Create Target Array in the Given Order (Easy)
  10. Diameter of Binary Tree (Easy)
  11. Divisor Game (Easy)
  12. First Unique Character in a String (Easy)
  13. Happy Number (Easy)
  14. Image Smoother (Easy)
  15. Last Stone Weight (Easy)
  16. Longest Common Prefix (Easy)
  17. Merge Sorted Array (Easy)
  18. Merge Two Sorted Lists (Easy)
  19. Number of Changing Keys (Easy)
  20. Odd String Difference (Easy)
  21. Plus One (Easy)
  22. Reverse Linked List (Easy)
  23. Reverse Vowels of a String (Easy)
  24. Rotate String (Easy)
  25. Split the Array (Easy)
  26. Substrings of Size Three with Distinct Characters (Easy)
  27. Two Furthest Houses With Different Colors (Easy)
  28. Two Sum (Easy)
  29. Valid Anagram (Easy)
  30. Valid Palindrome (Easy)
  31. Valid Palindrome II (Easy)
  32. Valid Parentheses (Easy)
  33. 3Sum (Medium)
  34. Best Time to Buy and Sell Stock II (Medium)
  35. Best Time to Buy and Sell Stock using Strategy (Medium)
  36. Brightest Position on Street (Medium)
  37. Check If Array Pairs Are Divisible by k (Medium)
  38. Container With Most Water (Medium)
  39. Count Mentions Per User (Medium)
  40. Count Nodes With the Highest Score (Medium)
  41. Design Memory Allocator (Medium)
  42. Divide Players Into Teams of Equal Skill (Medium)
  43. Edit Distance (Medium)
  44. Find Peak Element (Medium)
  45. Find Score of an Array After Marking All Elements (Medium)
  46. Find the Length of the Longest Common Prefix (Medium)
  47. Gas Station (Medium)
  48. Grid Teleportation Traversal (Medium)
  49. Group Anagrams (Medium)
  50. Largest Number (Medium)
  51. Letter Combinations of a Phone Number (Medium)
  52. Longest Consecutive Sequence (Medium)
  53. Longest Palindromic Substring (Medium)
  54. Longest Substring Without Repeating Characters (Medium)
  55. LRU Cache (Medium)
  56. Match Alphanumerical Pattern in Matrix I (Medium)
  57. Maximum Subarray (Medium)
  58. Merge Intervals (Medium)
  59. Minimum Absolute Difference Between Elements With Constraint (Medium)
  60. Minimum Operations to Write the Letter Y on a Grid (Medium)
  61. Number of Adjacent Elements With the Same Color (Medium)
  62. Number of Black Blocks (Medium)
  63. Number of Divisible Triplet Sums (Medium)
  64. Number of Perfect Pairs (Medium)
  65. Number of Subarrays That Match a Pattern I (Medium)
  66. Restore IP Addresses (Medium)
  67. Restore the Array From Adjacent Pairs (Medium)
  68. Reverse Words in a String (Medium)
  69. Rotate Array (Medium)
  70. Rotate Image (Medium)
  71. Rotating the Box (Medium)
  72. Search in Rotated Sorted Array (Medium)
  73. Sell Diminishing-Valued Colored Balls (Medium)
  74. Simplify Path (Medium)
  75. Sort Colors (Medium)
  76. Spiral Matrix (Medium)
  77. Sum Root to Leaf Numbers (Medium)
  78. Two Sum II - Input Array Is Sorted (Medium)
  79. Unique Paths (Medium)
  80. Word Search (Medium)
  81. Best Time to Buy and Sell Stock III (Hard)
  82. Block Placement Queries (Hard)
  83. Candy (Hard)
  84. Earliest Possible Day of Full Bloom (Hard)
  85. Find Median from Data Stream (Hard)
  86. First Missing Positive (Hard)
  87. Largest Rectangle in Histogram (Hard)
  88. Length of Longest V-Shaped Diagonal Segment (Hard)
  89. LFU Cache (Hard)
  90. Longest Valid Parentheses (Hard)
  91. Maximal Rectangle (Hard)
  92. Median of Two Sorted Arrays (Hard)
  93. Minimum Cost Path with Teleportations (Hard)
  94. Reconstruct Itinerary (Hard)
  95. Reverse Nodes in k-Group (Hard)
  96. Shortest Palindrome (Hard)
  97. Sliding Window Maximum (Hard)
  98. Text Justification (Hard)
  99. Trapping Rain Water (Hard)
  100. Word Ladder (Hard)

Prepare for the rest of the Visa process

Other companies