grindmapcompany-wise LeetCode
All companies

Visa LeetCode Questions

146 questions all-time · 32 easy · 92 medium · 22 hard
# Problem Difficulty Frequency Acceptance
1Text Justification
Hard
100
0.5%
2Length of Longest V-Shaped Diagonal Segment
Hard
99
0.6%
3Rotating the Box
Medium
97
0.8%
4Two Sum
Easy
96
0.6%
5Split the Array
Easy
94
0.6%
6Longest Substring Without Repeating Characters
Medium
93
0.4%
73Sum
Medium
93
0.4%
8Minimum Operations to Write the Letter Y on a Grid
Medium
93
0.6%
9Find the Length of the Longest Common Prefix
Medium
90
0.6%
10Best Time to Buy and Sell Stock
Easy
87
0.6%
11LRU Cache
Medium
87
0.5%
12Create Target Array in the Given Order
Easy
83
0.9%
13Block Placement Queries
Hard
83
0.4%
14Number of Black Blocks
Medium
81
0.4%
15Group Anagrams
Medium
78
0.7%
16Divisor Game
Easy
78
0.7%
17Count Nodes With the Highest Score
Medium
78
0.5%
18Two Furthest Houses With Different Colors
Easy
78
0.7%
19Earliest Possible Day of Full Bloom
Hard
78
0.7%
20Match Alphanumerical Pattern in Matrix I
Medium
78
0.7%
21Maximum Number of Events That Can Be Attended
Medium
78
0.4%
22Odd String Difference
Easy
78
0.6%
23Simplify Path
Medium
78
0.5%
24Number of Adjacent Elements With the Same Color
Medium
78
0.6%
25Merge Intervals
Medium
76
0.5%
26Trapping Rain Water
Hard
73
0.7%
27Maximum Subarray
Medium
73
0.5%
28Largest Rectangle in Histogram
Hard
73
0.5%
29Number of Divisible Triplet Sums
Medium
73
0.7%
30Maximum Sum of Alternating Subsequence With Distance at Least K
Hard
73
0.3%
31Longest Palindromic Substring
Medium
70
0.4%
32Valid Parentheses
Easy
70
0.4%
33Number of Islands
Medium
70
0.6%
34Longest Common Prefix
Easy
66
0.5%
35Minimum Time Difference
Medium
66
0.6%
36Minimum Absolute Difference Between Elements With Constraint
Medium
66
0.4%
37Beautiful Arrangement
Medium
66
0.6%
38Walls and Gates
Medium
61
0.6%
39Spiral Matrix
Medium
61
0.6%
40Reverse Linked List
Easy
61
0.8%
41Rotate Image
Medium
61
0.8%
42Count Palindromic Subsequences
Hard
61
0.4%
43Exclusive Time of Functions
Medium
61
0.7%
44Course Schedule
Medium
56
0.5%
45Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Medium
56
0.6%
46Restore IP Addresses
Medium
56
0.6%
47Container With Most Water
Medium
56
0.6%
48Merge Two Sorted Lists
Easy
56
0.7%
49Sort Colors
Medium
56
0.7%
50Happy Number
Easy
56
0.6%
51Grid Teleportation Traversal
Medium
56
0.2%
52Matrix Block Sum
Medium
56
0.8%
53Gas Station
Medium
56
0.5%
54Subarray Sum Equals K
Medium
56
0.5%
55Number of Changing Keys
Easy
56
0.8%
56Minimum Cost Path with Teleportations
Hard
56
0.5%
57Number of Perfect Pairs
Medium
56
0.3%
58Divide Players Into Teams of Equal Skill
Medium
56
0.7%
59Maximum OR
Medium
56
0.4%
60Minimum Number of Swaps to Make the String Balanced
Medium
56
0.8%
61Check If Array Pairs Are Divisible by k
Medium
49
0.5%
62Diameter of Binary Tree
Easy
49
0.7%
63Image Smoother
Easy
49
0.7%
64Top K Frequent Elements
Medium
49
0.7%
65Word Ladder
Hard
49
0.5%
66Candy Crush
Medium
49
0.8%
67Partition Equal Subset Sum
Medium
49
0.5%
68Number of Matching Subsequences
Medium
49
0.5%
69Balanced Binary Tree
Easy
49
0.6%
70Find Median from Data Stream
Hard
49
0.5%
71Longest Valid Parentheses
Hard
49
0.4%
72Best Time to Buy and Sell Stock II
Medium
49
0.7%
73Product of Array Except Self
Medium
49
0.7%
74Add Binary
Easy
49
0.6%
75Add Strings
Easy
49
0.5%
76Sell Diminishing-Valued Colored Balls
Medium
49
0.3%
77Median of Two Sorted Arrays
Hard
39
0.5%
78Plus One
Easy
39
0.5%
79Reverse Words in a String
Medium
39
0.6%
80Daily Temperatures
Medium
39
0.7%
81Find Score of an Array After Marking All Elements
Medium
39
0.6%
82Reverse Nodes in k-Group
Hard
39
0.7%
83Rotate Array
Medium
39
0.5%
84Valid Anagram
Easy
39
0.7%
85Best Time to Buy and Sell Stock III
Hard
39
0.5%
86Find Peak Element
Medium
39
0.5%
87Sliding Window Maximum
Hard
39
0.5%
88Substrings of Size Three with Distinct Characters
Easy
39
0.8%
89Number of Subarrays That Match a Pattern I
Medium
39
0.7%
90House Robber II
Medium
39
0.5%
91Edit Distance
Medium
39
0.6%
92Brightest Position on Street
Medium
39
0.6%
93Contains Duplicate
Easy
39
0.6%
94Sum Root to Leaf Numbers
Medium
39
0.7%
95LFU Cache
Hard
39
0.5%
96Longest Increasing Subsequence
Medium
39
0.6%
97Sort Characters By Frequency
Medium
39
0.8%
98Binary Tree Right Side View
Medium
39
0.7%
99Check if Array Is Sorted and Rotated
Easy
39
0.6%
100Kth Largest Element in an Array
Medium
39
0.7%
101Reverse Vowels of a String
Easy
39
0.6%
102Valid Palindrome II
Easy
39
0.4%
103Two Sum II - Input Array Is Sorted
Medium
39
0.7%
104Ugly Number II
Medium
39
0.5%
105Unique Paths
Medium
39
0.7%
106Restore the Array From Adjacent Pairs
Medium
39
0.8%
107Letter Combinations of a Phone Number
Medium
39
0.7%
108Reconstruct Itinerary
Hard
39
0.4%
109Design Memory Allocator
Medium
39
0.5%
110Last Stone Weight
Easy
39
0.7%
111Count Mentions Per User
Medium
39
0.5%
112Best Time to Buy and Sell Stock using Strategy
Medium
39
0.6%
113Maximal Rectangle
Hard
39
0.6%
114Add Digits
Easy
39
0.7%
115Candy
Hard
39
0.5%
116Alternating Digit Sum
Easy
39
0.7%
117Next Greater Element II
Medium
39
0.7%
118Word Search
Medium
39
0.5%
119Merge Sorted Array
Easy
39
0.6%
120Rotting Oranges
Medium
39
0.6%
121Subarray Sums Divisible by K
Medium
39
0.6%
122Longest Consecutive Sequence
Medium
39
0.5%
123Valid Palindrome
Easy
39
0.5%
124First Unique Character in a String
Easy
39
0.7%
125Count Good Numbers
Medium
39
0.6%
126Hand of Straights
Medium
39
0.6%
127Non-overlapping Intervals
Medium
39
0.6%
128Palindrome Partitioning
Medium
39
0.7%
129Maximal Score After Applying K Operations
Medium
39
0.6%
130Flood Fill
Easy
39
0.7%
131Meeting Rooms II
Medium
39
0.5%
132Word Break
Medium
39
0.5%
133Word Break II
Hard
39
0.6%
134Maximum Palindromes After Operations
Medium
39
0.5%
135Jump Game VI
Medium
39
0.5%
136Path With Minimum Effort
Medium
39
0.6%
137Capacity To Ship Packages Within D Days
Medium
39
0.7%
138Minimum Suffix Flips
Medium
39
0.7%
139Longest Common Subsequence
Medium
39
0.6%
140Minimize Maximum of Array
Medium
39
0.5%
141Binary Tree Level Order Traversal
Medium
39
0.7%
142Word Search II
Hard
39
0.4%
143Kth Largest Sum in a Binary Tree
Medium
39
0.6%
144Longest Non-decreasing Subarray From Two Arrays
Medium
39
0.3%
145Search in Rotated Sorted Array
Medium
39
0.5%
146Count Ways To Build Good Strings
Medium
39
0.6%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.

Similar companies