Visa Software Engineer Interview Experience — Warehouse-Capacity Routing and a Pair-Sum-With-Updates Problem

Visa·Software Engineer·Sep 2025
Online Assessmentmedium

Questions one and two were pretty easy, I don't really remember them.

Three:
The prompt was long.
You're given an int array representing the capacities of warehouses 0 through n - 1, plus an array of events. Events are either "PACKAGE" (process one package) or "CLOSURE X" (close warehouse N). Packages start being processed at warehouse 0, and once a warehouse hits capacity, the next warehouse that isn't closed takes over. Once warehouse N-1 fills up, processing wraps back around to warehouse 0 — capacities reset, but closures don't.

In the end, return the id of the warehouse that processed the most packages. If there's a tie, return the largest id.

Four:
The prompt was long too. You're given two int arrays A and B, and a series of operations. There are two kinds of operations:

  1. Sum query — given a target sum, count how many pairs (one element from A, one from B) add up to it.
  2. Update — replace some element of array B with a new value.
    The return value is an array containing the result of each operation 2.
    For example:
    A: 1, 3
    B: 2, 4
    Operations:
    1, 5
    2, 0, 3
    1, 4
    The answer is [2, 1] — there were originally 2 pairs summing to 5, and after the update there was only 1 pair summing to 4.
    There was a lot of test data, so you needed to optimize the time complexity, but I didn't get to see what the input that timed out looked like.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Visa
Role
Software Engineer
Rounds
Online Assessment
Difficulty
medium
Interview date
Sep 2025
Questions from this interview
2 questions

Real Visa interview experiences

First-hand reports from Visa candidates — the rounds, the questions they were asked, and how it went.

All 10 Visa interview experiences