InterviewLegend

The India Campus OA

Alex Chen15 min readGuide updated
In this lesson
  • Rate-limit IPs over a 10-minute sliding window, then stream a log too big for memory
  • Know the format of the 2026 campus sets and the topics they covered
  • Build a 75-minute practice set that matches the real test

Visa ran its India campus drives from September to November 2026. Wherever the online test's format was described, it was a HackerRank-style set of three coding problems. RV College of Engineering in Bengaluru got 75 minutes for its set on October 31, 2026. IIIT Bangalore's set was three coding problems, and IIT ISM Dhanbad's was three DSA problems on HackerRank.

Most of the problems were array and string work. Candidates named things like maximal score after k operations, the fewest swaps to balance a string of parentheses, a maximum sum valid subsequence and a triplet sum. There was one undirected graph problem, a friends-of-friends recommendation lookup and two implementation tasks, a cache query handler and a user rating level. The rate limit over a request log below is the problem with two Visa reports, so it gets the full treatment.

The Visa angle
Three problems in 75 minutes leaves about 25 each. Read all three first and bank the shortest, then spend what's left on the hardest. A HackerRank set scores hidden tests, so an O(n^2) answer that passes the samples can still lose points.

The Visa campus OA format in 2026

The campus test differs from the one experienced hires take. Through January 2026 most experienced and US candidates sat CodeSignal's four-problem test, scored out of 600. Since February most reports describe a tiered HackerRank assessment instead. The campus sets were three problems on HackerRank or something like it.

Each college got its own set, and the sets overlapped only a little. IIT BHU and IGDTUW both had a problem called minimum operations to empty an array, and RV College's minimum operations to convert an array to zero sounds like the same task. IIT ISM Dhanbad's friend recommendations problem came up twice. Most other problems turned up once. A shuttle missions problem from the October drives is worked in the Visa OA lesson, since it also showed up on a 2025 intern CodeSignal test.

Expect arrays and strings, solved in one pass with the right structure: a queue per key, a heap, or a counter over the input. Hidden tests reward the fast version, so name the brute force in your head and write the faster one.

Asked at Visa

Rate-limit IPs from a log file

Two Visa reports share this shape. In October 2026 an IIT BHU campus set had a problem called requests in the previous 10 minutes, which starts from a sorted array of request timestamps. A year and a half earlier, in May 2025, a candidate with ten months of experience got it in a first technical round. Their interviewer opened on what a DDoS attack is and how to stop one, then asked for the IPs making more than x requests in a 10-minute window.

The version below uses the live round's framing, with timestamps and IPs together. With a single IP it comes down to counting requests in the last 10 minutes, which is where the campus problem starts.

1

Rate-Limit IPs in a 10-Minute Window

MediumFrequently asked
Problem
A server logs one line per request, with the time in seconds and the client IP. You get the log as two lists of the same length. timestamps[i] is the time of request i and ips[i] is the IP that sent it, and the timestamps never go down, the way a log file is written.

An IP is flagged if at any moment it has made more than limit requests in the last 10 minutes. The 10 minutes ending at time t hold every request with a timestamp greater than t - 600 and at most t.

Return the flagged IPs in sorted order, or an empty list if there are none. The log has up to 100,000 requests.
Inputtimestamps = [0, 100, 200]ips = ["a", "a", "a"]limit = 2Output["a"]

IP a sends three requests within 200 seconds, which is more than 2.

How this uses the pattern

Keep a queue of recent timestamps for each IP. When a request arrives, pop every time at or before t - 600 from the front of that IP's queue, then compare its length with limit.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Rate-Limit IPs in a 10-Minute Window

Loading...
Click "Run" to execute your code
The Visa angle
The May 2025 interviewer talked about DDoS before any code, so be ready to say what a rate limiter is for. The coding part rewards one structure, a queue per IP that drops old times as new ones arrive, so each request costs O(1) amortized. Recounting the whole window for every line is O(n^2) and fails on a long log. Pin down the window edge before you write the loop. Whether a request exactly 600 seconds old still counts is the off-by-one that hidden tests catch.
Take it further
The log file is gigabytes. That was the 2025 interviewer's next question, and the candidate answered with external sorting. Split the file into chunks that fit in memory, sort each by time, and merge the sorted runs. If the file is already in time order, skip the sort and stream it one line at a time. One queue of the last 10 minutes across all IPs keeps memory tied to the window, and quiet IPs drop out. Worked below.

Common questions

What are the Visa OA questions for campus hires in 2026?

Mostly array and string problems. The September to November 2026 India drives included an IP rate limit over a 10-minute window, maximal score after k operations, the fewest swaps to balance parentheses and minimum operations to empty an array. The rate limit is worked above, and a two-schedule mission problem from the same drives is in the OA lesson.

Is the Visa campus OA on HackerRank?

The IIT ISM Dhanbad set was labelled HackerRank, and the other 2026 campus sets with a stated format were also three problems. Off campus, intern and new grad reports since February 2026 mostly name HackerRank's "Coding - Intermediate" test, though one UK new grad got the Beginner tier. December 2025 intern tests ran on CodeSignal, so check the platform named in your invite.

How long is the Visa campus online assessment?

Three problems. The one drive with a stated time, RV College of Engineering on October 31, 2026, gave 75 minutes. Plan for about 25 minutes a problem, and finish the easiest one fast so the hardest one gets more.

How to practice for the Visa campus OA

Build a 75-minute set of three, the same shape as the real test: the rate limit above, the mission problem from the OA lesson, and an array medium such as maximal score after k operations. Write each from a blank file, and before you run it, make up the edge case that would break it, like a gap of exactly 600 seconds. After the OA, the intern and new grad lesson covers the technical rounds that follow it.

Key Takeaways

  • ✓The 2026 India campus OA was a set of three coding problems, with 75 minutes at one October drive.
  • ✓The IP rate limit with a 10-minute window has two Visa reports, a 2026 campus set and a 2025 live round.
  • ✓Most campus problems were array and string work. Practice them on a 25-minute timer each.
  • ✓Hidden tests reward the fast version, so skip the brute force and write the queue, heap or counter answer.
Visa interview guide

Know what Visa asks before you walk in.

30 coding · 8 system design · 20 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

The OA on HackerRank and CodeSignalHad your Visa interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.