Visa String Coding Interview Questions
32 string coding problems are tagged as asked at Visa in interviews and online assessments reported by candidates. By difficulty they split into 11 basic, 15 intermediate and 6 advanced. The topics they most often combine with are Hash Table, Dynamic Programming, Stack, Two Pointers.
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
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- 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)
- Sort Characters by Frequency (Intermediate)
- Add Strings (Basic)
- Reconstruct Itinerary (Advanced)
- Text Justification (Intermediate)
- Level Order Traversal (Basic)
- 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)
- Valid Palindrome With One Deletion (Basic)
- Letter Combinations of a Phone Number (Intermediate)
- Restore IP Addresses (Intermediate)
- Word Break II (Advanced)
- Minimum Time Difference (Intermediate)
- Unique Length-3 Palindromic Subsequences (Intermediate)
- Rotating the Box (Intermediate)
- Minimum Suffix Flips (Basic)
- Minimum Swaps to Make the String Balanced (Intermediate)
Related
- Visa coding interview questions
- String problems
- Visa basic problems
- Visa intermediate problems
- Visa advanced 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.