problem
题意:
solution#1:迭代;
code
solution#2: 迭代;
code
solution#3: 数学;oneline;
code
参考
1. leetcode_easy_greedy_1518. Water Bottles;
2. leetcode1518(换酒问题)--Java语言实现;
完
problem
题意:
solution#1:迭代;
code
solution#2: 迭代;
code
solution#3: 数学;oneline;
code
参考
1. leetcode_easy_greedy_1518. Water Bottles;
2. leetcode1518(换酒问题)--Java语言实现;
完