We need to think about solutions to this, right from the start of the class, and we already talked about something.
从一上课开始,我们就应该开始,思考这些问题解决方案,现在我们已经谈论了一些了
The solution is so simple, give us $2, we'll give you a ticket and yet it takes nine steps to do that.
解决方案也简单,给我们2美元,我们将给你一张票,但是你需要9个步骤来处理。
On Tuesday we'll talk about a different way to implement Fibonacci, where the growth will be much less dramatic. Thank you.
周二我们将会讲一种,不同的Fibonacci数列解决方案,这个方案的增长会小得多,谢谢。
I want to try to understand in that lecture-- help us to understand how this works and how we're getting solutions--possible solutions to these problems.
在那节课我会,帮助大家了解这是如何发挥作用的,以及我们是如何找到,可行性方案来解决目前的问题
All right. We can look at some other things which will work better.
好,我们可以来看看其他,一些更好的解决方案。
Now, what we saw last time is there's a brute force solution.
现在,我们上次,看过穷举法解决方案。
So what's the solution?
所以我们的解决方案是什么呢?
So yes, f is a float, but that solution is too late; we need to fix the problem sooner.
是的,f是一个浮点数,但是那个解决方案太迟了;,我们应该在次之前把问题解决。
What caused it? It was caused maybe it's oversimplifying it it was caused by a change in our resolve to let's get inflation under control - and a willingness to accept the recession to stop the advance of inflation.
是什么引发了它,它是因为-也许过分的单纯化它,它是由于一个为了,让我们将通货膨胀控制在手中的解决方案,和一个接受经济衰退的愿望,结束通货膨胀的继续上涨所导致的。
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函数的第二个版本,实际上,这几乎是一样的,这是之前的,这个之后的,之前的,之后的,这看起来像是这个问题的解决方案,我们一直多次访问它,目的是什么呢?
应用推荐