That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.
然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。
So, that's basically it. Just because I have my dissertation to write, so
就是这样。因为我还有论文要写,所以
I'm out of numbers so I can just write down the 7 and now, if you're following along, what step comes next?
再没有数字了,所以直接将7写下来,下一步是什么?
Let's try to do part of it in the head, so I can just write down the answer.
让我们先试试前面的一部分,我就直接写答案了
So, I just want to write a few examples down with a few values for delta u or delta H or delta S, and see whether we can get any clues from what we see.
我先写一些例子,例子包含一些内能,自由焓和熵的变化数值,然后看从中,我们能不能得到一些启示。
I'm going to have it take in as input how many legs I got, how many heads do I have, and I just want to write a little loop.
这就是解决问题的思路,我将要输入我有多少条腿,以及我有多少只头。
So just write it down, and I'll give you the numbers in just a second.
先写下来,我等会给你们答案
I just give you one of those, right, because you could write down the other one because you know the other complimentary sequence from base pairing?
我只写了一条链的序列,因为你们能够写出另一条,因为你们根据碱基配对,就能推测出互补链的序列
I don't know how clear that all was; let me just write this down.
我不知道是否讲清楚了,我写下来吧
So prices are determined as follows: prices depend on some parameters I'm just going to call a and b, and let me write the equation and then we'll see what it looks like.
价格由如下因素决定,价格取决于两个参数a和b,我们用方程写一下吧
And I just want to write those because what I really want to get at is what's the efficiency of the whole thing?
我写出这些的原因,是我真正想得到的是,它的效率?
And I won't write it all out, I'll just write it's got Harvard as one in it, Harvard and then it's got Yale, and then it's got Brown.
当做是在内存中某处以对象,的形式存在而处理的,我不会把它全写出来,我只写ivys包括了。
Now, if you guys are using your computer or you have a pen, I'd just like you to write down what your estimates are of a few foods I'll show you and see what you say.
使用你们的电脑,或者拿起支笔,请写下对以下我展示的一些食物,卡路里的估测,让我们看看结果
So I am going to on the fly write a very simple little main program that just illustrates some of the syntax that we can then visualize more interesting.
我很快的写了一个很简单地小程序,来说明一些语法,我们使它变得更有趣些。
This might be 1 in 100, 000, 000, 000 or something like that; don't write down the numbers I'm just using that for illustration.
是大约是一比一千亿那么少,不用记这个数字,我只是打个比方而已
Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.
让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。
I think they motivate a lot of what -I'm going to write a number of principles of behavioral finance down and just mention them briefly and then return to regulation.
我认为他们促进了这些...,我先写一些行为金融学的原理,只是先简单地过一遍,再回到市场监管
Today, I'm gonna start writing C code with you but I can't just write it and expect it to do anything.
现在,我和大家一起写C语言代码,但我不指望写出来后就能跑起来。
Meaning, I'm just going to write a little loop that does that. All right, so let's go back to our code. That's right, let me pull this over a little bit, so I can see it. And what I'd like you to look at, I'm going to highlight it just for a second here, is those two pieces of code.
意思就是我只需,写一个小循环就可以了,让我们回到代码,让我们向下拉一点,我才看得见,我希望你看看这里。
OK, so how can I code this up? Well, you might think, let's just jump in and write some code, I don't want to quite do that though, because I want to show you another tool that's valuable for thinking about how to structure the code, and that is a something called a flow chart. Now.
好,那么我怎么把这个以代码实现呢,你可能会想,让我们进去直接写代码把,但是我不想这么做,因为我想教给大家另外一项很有价值的,用来组织代码的工具,叫做流程图,现在,像Guttag教授,和我这么大岁数的人。
应用推荐