Visa Interview Questions — 84 DSA Problems 80 problems with full solutions in Python, Java, C++, JavaScript, Go, Rust.
Most frequently asked Visa LeetCode questions for software engineering interviews.
Length of Longest V-Shaped Diagonal Segment (HARD) — Array, Dynamic Programming, Memoization, Matrix Two Sum (EASY) — Array, Hash Table Split the Array (EASY) — Array, Hash Table, Counting Rotating the Box (MEDIUM) — Array, Two Pointers, Matrix 3Sum (MEDIUM) — Array, Two Pointers, Sorting Best Time to Buy and Sell Stock (EASY) — Array, Dynamic Programming Create Target Array in the Given Order (EASY) — Array, Simulation Longest Substring Without Repeating Characters (MEDIUM) — Hash Table, String, Sliding Window Maximum Number of Events That Can Be Attended (MEDIUM) — Array, Greedy, Sorting, Heap (Priority Queue) Match Alphanumerical Pattern in Matrix I (MEDIUM) — Array, Hash Table, String, Matrix Odd String Difference (EASY) — Array, Hash Table, String Group Anagrams (MEDIUM) — Array, Hash Table, String, Sorting Earliest Possible Day of Full Bloom (HARD) — Array, Greedy, Sorting Divisor Game (EASY) — Math, Dynamic Programming, Brainteaser, Game Theory Block Placement Queries (HARD) — Array, Binary Search, Binary Indexed Tree, Segment Tree Two Furthest Houses With Different Colors (EASY) — Array, Greedy Count Nodes With the Highest Score (MEDIUM) — Array, Tree, Depth-First Search, Binary Tree LRU Cache (MEDIUM) — Hash Table, Linked List, Design, Doubly-Linked List Longest Common Prefix (EASY) — String, Trie Trapping Rain Water (HARD) — Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack Search in Rotated Sorted Array (MEDIUM) — Array, Binary Search Valid Parentheses (EASY) — String, Stack Text Justification (HARD) — Array, String, Simulation Simplify Path (MEDIUM) — String, Stack Number of Islands (MEDIUM) — Array, Depth-First Search, Breadth-First Search, Union Find, Matrix Merge Intervals (MEDIUM) — Array, Sorting Walls and Gates (MEDIUM) — Array, Breadth-First Search, Matrix Minimum Operations to Write the Letter Y on a Grid (MEDIUM) — Array, Hash Table, Matrix, Counting Longest Palindromic Substring (MEDIUM) — Two Pointers, String, Dynamic Programming Number of Adjacent Elements With the Same Color (MEDIUM) — Array Daily Temperatures (MEDIUM) — Array, Stack, Monotonic Stack Reverse Linked List (EASY) — Linked List, Recursion Course Schedule (MEDIUM) — Depth-First Search, Breadth-First Search, Graph, Topological Sort Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (MEDIUM) — Array, Queue, Sliding Window, Heap (Priority Queue), Ordered Set, Monotonic Queue Reverse Words in a String (MEDIUM) — Two Pointers, String Maximum Subarray (MEDIUM) — Array, Divide and Conquer, Dynamic Programming Word Ladder (HARD) — Hash Table, String, Breadth-First Search Top K Frequent Elements (MEDIUM) — Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect Number of Black Blocks (MEDIUM) — Array, Hash Table, Enumeration Restore IP Addresses (MEDIUM) — String, Backtracking Find Peak Element (MEDIUM) — Array, Binary Search Roman to Integer (EASY) — Hash Table, Math, String Check If Array Pairs Are Divisible by k (MEDIUM) — Array, Hash Table, Counting Reverse Nodes in k-Group (HARD) — Linked List, Recursion Word Search (MEDIUM) — Array, String, Backtracking, Depth-First Search, Matrix Rotate String (EASY) — String, String Matching Diameter of Binary Tree (EASY) — Tree, Depth-First Search, Binary Tree Shortest Palindrome (HARD) — String, Rolling Hash, String Matching, Hash Function Largest Number (MEDIUM) — Array, String, Greedy, Sorting Brightest Position on Street (MEDIUM) — Array, Sorting, Prefix Sum, Ordered Set V
Visa 84 questions tracked 80 with solutions
📊 All Time 84 📅 Last 6 Months 32 🔥 Last 3 Months 20 ⚡ Last 30 Days 2
Frequency scoreSorted highest → lowest frequency ✓ Our Solution = we have a detailed walkthrough
Showing 84 of 84 questions
1 Array Dynamic Programming Memoization Matrix
8 Hash Table String Sliding Window
9 Array Greedy Sorting Heap (Priority Queue)
10 Medium Match Alphanumerical Pattern in Matrix I
Array Hash Table String Matrix
12 Array Hash Table String Sorting
14 Math Dynamic Programming Brainteaser Game Theory
15 Array Binary Search Binary Indexed Tree Segment Tree
17 Array Tree Depth-First Search Binary Tree
18 Hash Table Linked List Design Doubly-Linked List
20 Array Two Pointers Dynamic Programming Stack +1
25 Array Depth-First Search Breadth-First Search Union Find +1
27 Medium Walls and Gates
Array Breadth-First Search Matrix
28 Medium Minimum Operations to Write the Letter Y on a Grid ✓ Our Solution Array Hash Table Matrix Counting
29 Two Pointers String Dynamic Programming
31 Array Stack Monotonic Stack
33 Depth-First Search Breadth-First Search Graph Topological Sort
34 Medium Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit ✓ Our Solution Array Queue Sliding Window Heap (Priority Queue) +2
36 Array Divide and Conquer Dynamic Programming
37 Hash Table String Breadth-First Search
38 Array Hash Table Divide and Conquer Sorting +4
39 Array Hash Table Enumeration
45 Array String Backtracking Depth-First Search +1
47 Tree Depth-First Search Binary Tree
48 String Rolling Hash String Matching Hash Function
50 Medium Brightest Position on Street
Array Sorting Prefix Sum Ordered Set
52 Tree Depth-First Search Binary Tree
55 Array Hash Table String Binary Search +3
56 String Dynamic Programming
59 Hash Table String Sliding Window Counting
60 Array Rolling Hash String Matching Hash Function
62 Medium Candy Crush
Array Two Pointers Matrix Simulation
63 Array Hash Table String Trie
64 Array Queue Sliding Window Heap (Priority Queue) +1
69 String Binary Search Enumeration
70 Array Greedy Heap (Priority Queue) Ordered Set
71 Dynamic Programming Tree Depth-First Search Binary Tree
72 Array Hash Table Sorting Heap (Priority Queue) +1
75 Array Math Divide and Conquer Geometry +3
81 Array Binary Search Divide and Conquer
84 Hash Table Linked List Design Doubly-Linked List