At least one of those things I mentioned is not true. I'm only going to address the last one.
至少我提到的这些事情没一件是真的,我会把最后一件事拿出来解决。
But it grows pretty rapidly, as n goes up, and I'm going to show you an example in a second.
解决问题需要的时间会急剧增长,一会儿我会让大家看个例子的,我想大家注意的还是。
You should have some idea of how I'll do it.
你们应该清楚我会用什么方法解决
Okay we'll try to correct this problem.
好吧,我会解决下这个问题
Now I've shortened it a little bit by saying, ah, we've run out of weight, we're OK.
现在我会简短一些说,啊,我们装不下了,问题解决。
I'm going to let t of b be the number of steps it takes to solve the problem of size b.
我会设立一个t作为,计算指数为b的时候解决问题需要的步骤数。
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐