注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
实现banking system.
Level 1: 实现三个function: create account, deposit, and withdraw.
CreateAccount(timestamp, accountId)
Deposit(timestamp, accountId, amount)
Withdraw(timestamp, accountId, am钱才算转了,可是unit test, 只要transfer的方法调用了,balance就减了。我来不及再细看题目,有做过的,给个解释?
Level 4: 来不及做了,所以不记得了,好像merge account.
|