Problem Description

Task: starting balance and transactions array (+credit, -debit). Return first index where balance becomes negative, else -1.

Input Format

Java method

Output Format

Return value

Constraints

Track using long.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next