InterviewLegend

Arrays, Strings & Binary Search

Alex Chen45 min readGuide updated

Arrays and strings fill a good share of Visa's live coding. The problems are familiar ones, mostly mediums, usually asked as written, and they sit inside a round that also covers your projects and your stack. That leaves maybe 20 minutes for the code. Speed and a clean first answer matter more here than a clever trick.

This lesson has four problems, the most repeated first. A Premium question leads, with the newest version from a June 2026 Staff round. Search in a Premium question comes next, from a December 2025 first round. The last two come from one November 2026 campus loop in India, which asked for every subarray with a given sum and for a recursive count that splits the array in half.

The Visa angle
The problem is often simpler than the round. In an August 2026 Senior round, the coding problem took about 15 minutes. A resume deep dive into an agentic RAG system the candidate listed came after it. Solve the easy ones fast and talk while you type. Every minute you save goes to the questions about your own work.

VisaPremium lesson · Coding round

The 4 Visa problems are below.

  1. A Premium questionCoding · Medium · Frequently asked
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

+ 1 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Visa questions

$49 a year · all 108 companies · instant access

20,000+ candidate reports

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.

Had your Visa interview?How we research

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