Implement deposit, withdraw, and transfer in a class
Company: Capital One
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's competence in concurrent programming, atomic state updates, and class-level account management for basic monetary operations.
Constraints
- 0 <= len(operations) <= 200000
- 1 <= amount <= 10^9 for deposit, withdraw, and transfer operations
- Account IDs are strings
- All operation names are valid and all amounts are positive integers