Visa 26NG OA 复盘|70分钟官方时限,30分钟轻松一次过(附题型解析)

354次閱讀

这次来分享一位同学的 Visa 2026 New Grad OA 经验。整体感觉和 TikTok 的题库几乎完全重合(确认是同一套 Codesignal 题库),区别只是时间从 TikTok 的 70 分钟缩短成了 Visa 的 60 分钟(有的 batch 甚至是 45 分钟),但题目内容和逻辑几乎一样。

这位同学因为之前练过 TikTok 的版本,这次直接在 30 分钟内全 AC。对于收到 OA 邀请但没太大把握的同学,这篇可以算是个完整参考。

Visa 26NG OA 复盘|70分钟官方时限,30分钟轻松一次过(附题型解析)

OA 基本信息

  • 平台:Codesignal
  • 题量:4 道编程题
  • 时限:官方 70 分钟(实测只用 30 分钟)
  • 难度分布:两道 Easy + 两道 Medium
  • 测试语言:Python / Java / C++ 均可,Python 最快

这套题对算法基础的考察并不重,但需要良好的代码实现速度与边界意识。

Question 1: Rating Calculation

Problem:
You are given an integer array diffs. Start with an initial rating of 1500. For each element in diffs, update your current rating by adding the difference. Track and return the highest rating you ever reach.

Example:

diffs = [100, -50, 200]
Output: 1650

Idea:
Simple simulation — keep two variables:

  • curr = 1500
  • best = 1500
    Iterate through diffs, update curr += diff, and keep best = max(best, curr)

Complexity: O(n)

Question 2: E-Scooter Ride Simulation

Problem:
You are walking along a street with several scooters placed at different positions. Starting from position start, you need to reach end.
At each step:

  1. Find the nearest scooter to your right that you haven’t used.
  2. Walk there.
  3. Ride 10 units forward (or stop at end if less than 10 units away).
  4. Repeat until you reach the end.
    Return the total riding distance.

Idea:
Use a while loop to simulate the movement process.
At each iteration, locate the next scooter, move to it, ride, and update your position.

Complexity: O(n²) (acceptable due to small input size).

Question 3: Distribution Centers

Problem:
You have several distribution centers, each with a limited capacity. You receive a series of package logs — each package is assigned to the first available center with remaining capacity.
When all centers are full, reset all non-closed centers to their initial capacity. Some centers may be permanently closed and should never reset.

Idea:
Maintain two arrays:

  • capacity[i] for remaining capacity
  • closed[i] as boolean flags

For each log entry, assign the package to the first available center.
If all centers are exhausted, reset non-closed centers.

Implementation-heavy but straightforward.

Question 4: Similar Peaks

Problem:
Given an array heights and an integer viewingGap, find all pairs (i, j) such that |i - j| >= viewingGap, and return the minimum absolute difference |heights[i] - heights[j]|.

Example:

heights = [1, 5, 2, 8], viewingGap = 2  
Output: 3

Idea:
Brute-force all valid pairs using double loop, update the minimum absolute difference.
For small inputs, O(n²) is sufficient.

总结与建议

整体来看,这套 Visa OA 的题型与 TikTok 几乎完全一致,难度中等,考察点集中在:

  1. 实现速度与代码规范:每题都有固定逻辑,不存在复杂算法。
  2. 模拟能力:尤其是第 2、3 题,属于纯过程模拟题。
  3. 边界控制:例如滑板车题的终点判断、配送中心的 reset 条件。

如果已经刷过 TikTok OA,可以直接无缝衔接 Visa。

小结

这类 Codesignal 套题最大的问题是 题量大、时间紧、容易卡边界。
不少同学会卡在“模拟类逻辑”题上,比如滑板车那题跑偏或者容量没重置。

所以如果你不想冒险自己摸索边界、担心时间不够,Programhelp 团队 也长期提供:

无痕远程 OA 辅助服务
通过安全工具 ToDesk,全程远程联机协助,系统无检测痕迹;
适配 HackerRank、Codesignal、Codility 等平台;

无论是 Visa、TikTok、Amazon、Capital One,我们都有完整题库与应对策略。

author avatar
Jory Wang Amazon资深软件开发工程师
Amazon 资深工程师,专注 基础设施核心系统研发,在系统可扩展性、可靠性及成本优化方面具备丰富实战经验。 目前聚焦 FAANG SDE 面试辅导,一年内助力 30+ 位候选人成功斩获 L5 / L6 Offer。
正文完