摘要:
腾讯 C++ 客户端研发实习生 有两个水杯,容积分别为 6 升和 5 升。试问可否 只 用这两个水杯量出 3 升水。 如果可以用第三个容器,那么这个问题就很简单了。我们可以量出 1 升水(先把 6 升的水杯灌满,再用其中的水把 5 升的水杯灌满),这样就能得到任意整数升水。面试时我就是这么回答的,现 阅读全文
posted @ 2019-06-06 16:17
Pat
阅读(690)
评论(0)
推荐(0)
「以解决问题为乐」
真的喜欢么?真的喜欢就去做吧。
Lost Boy Calling 。。。。
... Many of these issues are best dealt with at the algorithmic level, rather than by "tweaking" the code.
This is an obscurity that catches the unwary.
原来我什么都不懂。