← Google questions
CodingReported in a candidate post, Apr 2024

Maximum Transactions before Balance Zero

Filed under Google

Given an array of integers representing transactions, find the maximum number of consecutive transactions possible such that the running balance (starting from 0) never drops below zero. If multiple…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.