We call that a base case. It's basically the simplest possible solution to the problem.
我们说这是一个基础案例,这是这个问题最简单的解决方案。
Like, if there is a problem, I try to think of the solution.
比如说出了什么问题,我就试着想怎么解决。
See, this, you agree, is a complete solution to this miniature, tiny, Mickey-Mouse problem.
毫无疑问,这是这道超级简单的题目的,完整答案
But it is a solution to this problem.
但这个是问题的一个解决方案。
So yes, f is a float, but that solution is too late; we need to fix the problem sooner.
是的,f是一个浮点数,但是那个解决方案太迟了;,我们应该在次之前把问题解决。
The heap offers us a solution to that problem.
堆就为那个问题提供了一个解决方案。
So this is version two of the swap function and, in fact, it is almost identical, this is before, this is after, before, after and it looks like the solution to this problem that we've been revisiting a couple of times now is just to do what?
这个swap函数的第二个版本,实际上,这几乎是一样的,这是之前的,这个之后的,之前的,之后的,这看起来像是这个问题的解决方案,我们一直多次访问它,目的是什么呢?
应用推荐