I wrote some codes in java. I just used if-else, function, and recursive method. How can I do this better?

前端 未结 0 1722
刺人心
刺人心 2021-02-12 01:35

Here is my code. Let me describe what I do here. I have 7kg soaps, and 2kg soaps. And I have total kg that mean how many kg soaps I need. I should use 7kg soaps first, if there

相关标签:
回答
  • 消灭零回复
提交回复
热议问题