Also reported as Optimal Account Balancing · LeetCode 465 · Account Balance
Pinterest coding question, reconstructed from 8 candidate reports (November 2025 to August 2026). Candidates reported 1 follow-up. The write-up includes a Python solution that passes 9 test cases.