July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
23
:
44
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. ...