LeetCode 2043. 简易银行系统

题目链接:
力扣https://leetcode-cn.com/problems/simple-bank-system/

【分析】简单模拟题
class Bank {

public Map map = new HashMap<>();
int n;

public Bank(long[] balance) {
this.n = balance.length;
for(int i = 0; i < n; i++){ map.put(i + 1, balance[i]); } } public boolean transfer(int account1, int account2, long money) { if(account1 < 1 || account1 > n || account2 < 1 ||

LeetCode 2043. 简易银行系统最先出现在Python成神之路

版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/25475.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>