41 questions · from 12 interviews
Visa interview questions
Every question candidates reported from their Visa interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Visa coding and DSA questions
- 01
Graph Problem – Minimum Score of a Path Between Two Cities (similar)
Given an undirected weighted graph, find the minimum possible score of a path between two specified cities. The score of a path is defined as the minimum edge weight in that path. This is the same problem as LeetCode 2492 – Minimum Score of a Path Between Two…
Medium · From VISA | OA | Staff Software Engineer | Rejected
- 02
DP – Minimum Price to Take Courses (similar to Minimum Cost for Tickets)
Given a list of days on which courses need to be taken, determine the minimum total cost to cover all days using ticket options of different durations. This is similar to LeetCode 983 – Minimum Cost for Tickets, where a DP solution evaluates the cost of…
Medium · From VISA | OA | Staff Software Engineer | Rejected
- 03
LinkedList Intersection
Given two singly linked lists, find the node at which the two lists intersect.
Medium · From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE | Not Selected
- 04
Longest Subarray Without Repeating Characters
Given a string, find the length of the longest contiguous substring that contains no duplicate characters.
Medium · From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE | Not Selected
- 05
Longest Strictly Increasing Subsequence
Find the longest strictly increasing subsequence in an array.
Medium · From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE
- 06
Kth Smallest Element
Given an unsorted array of numbers and an integer k , find the k‑th smallest element in the array.
Medium · From Visa - Staff Software Engineer ( Rejected)
- 07
Reverse Linked List Except Head and Tail
Given a singly linked list, reverse the nodes of the list excluding the head and the tail nodes. The head should remain the first node and the tail should remain the last node after the operation.
Medium · From Visa - Staff Software Engineer ( Rejected)
- 08
Hand of Straights
The problem asks to determine if it is possible to arrange a hand of cards into groups of size groupSize, such that each group contains groupSize consecutive cards. I was asked this problem during my coding round.
Medium · From Visa | Staff SE | Backend | R-1
- 09
Find Actors by Favorite Genre SQL
You are given the following tables: 1. WatchedMovies movieid genre 1 Action 2 Comedy 3 Action 4 Drama 2. MovieActors movieid actorid 1 10 1 11 2 12 3 10 3. GenreActors genre actorid Action 10 Comedy 12 Drama 13 Action 11 4. Actors actorid age 10 45 11 50 12…
From Visa | Coding Round | Bengaluru | Senior Data Scientist
- 10
CamelCase String Split into Valid Words
You are given: A list of valid words that can be used as variable names in a programming language. A string written in CamelCase format, which may or may not start with a capital letter. Task Write a function that determines whether the CamelCase string can…
From Visa | Coding Round | Bengaluru | Senior Data Scientist
- 11
Parallel Courses II
The problem statement is available at the provided LeetCode link.
Hard · From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 12
Non-overlapping Intervals
The problem statement is available at the provided LeetCode link.
Medium · From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 13
Minimum Moves to Equal Array Elements II
The problem statement is available at the provided LeetCode link.
Medium · From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 14
Time Machine Travel Cost
Imagine that you have a time machine. You are given an array years. You start in the year years[0]. Next, you need to travel to years[1], then to years[2], and so on. Your task is to calculate the time required to visit all the years from the list in order.…
- 15
Digit-wise Sum of Strings
You are given two positive integers a and b as strings, and your task is to return a string of their digit-wise sums. Add every 'i'th digit of the first string to the 'i'th digit of the second string, both counted from the end. If the 'i'th digit of one of…
- 16
Subarrays with K Non-overlapping Identical Fruit Pairs
You're given an array of integers representing fruits on a conveyor belt. Your goal is to count how many contiguous subarrays have at least k non-overlapping identical fruit pairs. A pair is formed when two of the same fruit appear in the subarray, and each…
- 17
Distribution Centers Package Processing
You are managing a network of distribution centers that handle package deliveries. Each center has a different capacity and must process a certain number of packages before needing a reset. You are given an array of integers 'centerCapacities' where…
- 18
Longest Substring Without Repeating Characters
Find the length of the longest substring without repeating characters. Full problem description available at the provided link.
Medium · From Visa | SDE 1
- 19
Letter Combinations of a Phone Number
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Full problem description available at the provided link.
Medium · From Visa | SDE 1
- 20
Two Sum
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
Easy · From Visa | SDE 1
- 21
Three Sum
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
Medium · From Visa | SDE 1
- 22
IP Request Rate Limiter
Given a log file with timestamps and IPs, implement a rate-limiter that blocks IPs making more than x requests within any 10-minute sliding window. The interview started with questions about DDoS attacks and prevention. A follow-up asked how to handle log…
Hard · From Visa | Software Engineer | Bangalore | May 2025 [Selected]
- 23
Aggressive Cows Problem Variation
A variation of the Aggressive Cows problem, requiring the application of binary search on answers .
Hard · From Visa | Software Engineer | Bangalore | May 2025 [Selected]
- 24
Detect Cycle in String Graph
You have been given a list of Strings where the logic of building adjacency list would be using the first and last letters of the string. For example : "abc","def","cfg","gza" Then abc is connected to cfg because the last letter of string abc is c and the…
- 25
Find Travel Itinerary from Tickets
Given String in the input with source and destination cities. For example : "Mumbai" - "Bangalore", "Goa" - "Dehradun", "Calcutta"-"Mumbai", "Dehradun"-"Calcutta" Here i had to find the source station starting from any city, that would complete the travel of…
1 more in the Visa write-ups.
Visa system design questions
- 01
Design a Payment System
Design a payment system that handles various payment states, supports multiple payment methods, ensures durable execution, and implements retry mechanisms.
From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE | Not Selected
- 02
Design a Notification System
Design a notification system that uses Kafka queues, works across multiple data centers, ensures data consistency, and guarantees that a notification event is not consumed twice.
From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE
- 03
Create Microservices from a Monolith
Explain the approach to break a single monolith into microservices, including strategies and patterns to use.
From Visa STAFF SWE (Bangalore) Interview Experience | 8.8 YOE
- 04
SQL vs NoSQL with Scaling
Compare SQL and NoSQL databases, discussing their differences in terms of vertical and horizontal scaling.
From Visa | SDE 1
- 05
Parallel Transaction File Processing System Design
Design a system capable of handling a large number of files containing transaction data. This system needs to process these files in parallel, group the processed data into other files, and demonstrate efficient strategies for storage and overall processing.…
Hard · From VISA | Software Engineer | Experienced | Reject
Visa other questions
- 01
Checked and Unchecked Exceptions in Java
Explain the difference between Checked and Unchecked Exceptions in Java.
From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 02
IOC in Spring
Explain Inversion of Control (IOC) in Spring.
From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 03
Drivers and Executors in Spark
Explain the roles of Drivers and Executors in Apache Spark.
From Visa | Sr. Data Engineer - Java/Big Data | Interview Experience
- 04
Spring Boot Annotations
Discuss Spring Boot annotations such as @Controller, @Service, and @Transactional.
From Visa | SDE 1
- 05
- 06
Pass by Reference vs. Pass by Value
Explain the concepts of pass by reference and pass by value in programming.
From Visa | SDE 1
- 07
Static vs. Non-Static Members
Explain the difference between static and non-static members (variables and methods) in object-oriented programming.
From Visa | SDE 1
- 08
SQL: Count Students by Department with CGPA > 9
Given a student table with StudentId, Name, Dep, CGPA, write a SQL query to print the number of students in each department where CGPA is greater than 9.
From Visa | SDE 1
- 09
SQL: Find Duplicate Rows
Given a student table with StudentId, Name, Dep, CGPA, write a SQL query to find duplicate rows based on StudentId.
From Visa | SDE 1
- 10
Feature Rollback/Bypass Mechanism Design
Imagine you have developed a new feature that is about to be deployed. If this feature were to break or cause issues in production, how would you implement a safety net to bypass or disable it without requiring a code change and redeployment? Describe your…
Visa interview questions FAQ
What questions are asked in Visa interviews?
Candidates reported 41 distinct questions across 12 Visa interviews. 26 coding and DSA questions, 5 system design questions, 10 other questions.
How difficult are Visa interview questions?
Of the questions candidates rated, 6% were easy, 72% medium and 22% hard.