Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
07
:
58
Back to Dashboard
Social Network Money Transfers
Medium
You are building the backend for a peer-to-peer payment app embedded in a social network. The system processes a sequence of commands, one per line, from standard input:
REGISTER,<name>,<balance>-- Create a new user with the given starting balance (a non-negative integer). User names are unique. ...