Visa Coding Interview Questions
91 coding problems are tagged as asked at Visa in interviews and online assessments reported by candidates. By difficulty they split into 27 basic, 49 intermediate and 15 advanced. The topics they most often combine with are Array, String, Math, Hash Table.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Visa tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Contains Duplicate (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Rotate Array (Intermediate)
- Longest Increasing Subsequence (Advanced)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Kth Largest Element (Intermediate)
- Two Sum in a Sorted Array (Basic)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Happy Number (Intermediate)
- Sort Colors (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Reverse Words in a String (Basic)
- Reverse Vowels of a String (Basic)
- Add Binary (Basic)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Longest Valid Parentheses (Advanced)
- Plus One (Basic)
- Search in a Rotated Sorted Array (Advanced)
- Merge Intervals (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Candy Distribution (Advanced)
- Last Stone Weight (Intermediate)
- Subarrays Divisible by K (Intermediate)
- Maximum Events Attended (Intermediate)
- Tree Diameter (Advanced)
- Subarray Sum Equals K (Intermediate)
- Partition Equal Subset Sum (Intermediate)
- Best Time to Buy and Sell Stock II (Intermediate)
- House Robber II (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Add Strings (Basic)
- Course Schedule Feasible (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Reconstruct Itinerary (Advanced)
- Walls and Gates Distance (Advanced)
- Text Justification (Intermediate)
- Reverse Linked List (Basic)
- Merge Two Sorted Lists (Basic)
- Balanced Binary Tree (Basic)
- Level Order Traversal (Basic)
- Number of Islands (Basic)
- Rotting Oranges (Intermediate)
- Path With Minimum Effort (Intermediate)
- Count Ways to Build Good Strings (Intermediate)
- Word Search (Intermediate)
- Word Search II Count (Advanced)
- Number of Matching Subsequences (Intermediate)
- Simplify Path (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Ugly Number II (Intermediate)
- Maximal Score After K Operations (Intermediate)
- Rotate Image (Intermediate)
- Image Smoother (Basic)
- 3Sum Triplets (Intermediate)
- Valid Palindrome With One Deletion (Basic)
- Sliding Window Maximum Values (Advanced)
- Letter Combinations of a Phone Number (Intermediate)
- Restore IP Addresses (Intermediate)
- Word Break II (Advanced)
- Beautiful Arrangement (Intermediate)
- Memory Allocator (Intermediate)
- Minimum Time Difference (Intermediate)
- Check if Array Is Sorted and Rotated (Basic)
- Count Nodes With the Highest Score (Intermediate)
Related
- Visa basic problems
- Visa intermediate problems
- Visa advanced problems
- Visa Array problems
- Visa String problems
- Visa Math problems
- Visa Hash Table problems
- Visa Sorting problems
- Visa Matrix problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Visa problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Visa interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.