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.
然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。
I know you can say it easily. I know you can speak well and write well in English. Keep it up!
相信你很快就能掌握的。你的口语跟写作都会很棒的。再接再厉!
What I have now is the following: I can write expressions, do combinations of things to get out values, I can store them away, I can print them up.
我已经讲过如下内容:,如何写表达式,如果把东西混合然后得到结果值,我可以将其保存,也可以将其显示。
dU=CvdT pV=RT So I can write du is Cv dT and pV is equal to RT.
于是。
" I can analyze data. I can write."
我会分析数据,擅长写作“
You can very quickly drive yourself nuts by sitting down, thinking, oh, I can write this program, no sweat, and then you write it and then there's a tiny little mistake here, but then there's a tiny little mistake here and here, and all of these stupid little things cascade until you try running your program, and the thing just doesn't work.
如果你只是仅仅干坐着,不费吹灰之力,凭空幻想着我可以把这个项目搞定,你会想地发疯的,也许你会写出一点东西出来,可能会有一点点错误,紧接着这或那又出现一点小错误,这些小错误一点一点地堆积了起来,直到你开始运行你整个项目,你会发现这堆东西根本就不工作。
The claim is, I can write any vector you give me as a real scale i plus a real scale j.
也就是说,我可以把任何你给我的矢量,写成 i 和 j 的实系数线性组合的形式
So we can write out what the electron configuration is here, and I think that I have already written that out for you in your notes.
我们可以在这里写出电子构型,我觉得我已经在你们,讲义上写出来了。
All right, so you're going to go to here; so this point here is... I can't even write this.
好的,你准备生产这么多,这点在这里,都写不下了
I write 1.0 times 1.6. Even that I can do in my head.
写下1。0*1。6,即使我可以在头脑中想象。
I can write on the board with it.
我能拿它在黑板上写字
Well, I'm going to write on the board, "shield equals moon," and you can schematize it with, let's say, "A equals A'." A'?
我会在黑板上写下“屏障和月亮一般大“,你们可以在脑海里概括一下,“两者相等“?
But then it will also be taught at the second level, which is for every paper that you'll read, every paper that you'll write, you'll always be thinking, "Ok, how can I take these ideas and apply them to my life?
而教学内容的另一部分,你们读每一篇论文,写每一篇论文时,都需要思考,如何把这些理念运用到生活中去?
I can write it explicitly. I can write it inside of a FOR loop. And we've started to add, and we'll see a lot more of this, examples of collections of structures so that we don't just have to do something that can be easily described as walking through a set of things but can actually be a collection that you walk through.
我可以明确的写出来,我可以把它在FOR循环的内部写出来,然后我们开始学习了add这个运算符,我们会在以后学习很多的,集合的数据结构的例子,这样一来我们可以进行一些,很简单的遍历集合的操作,我想要为大家指出的最后一件事情是。
I'm trying to write these two unknowns in terms of these two knowns and you can solve for them.
我会试着将这两个未知量,用这两个已知量表示出来 这样你们就可以求了
I'm out of numbers here, so now I can blindly write down the rest of these numbers.
这儿再没有数字了,所以我可以直接,将剩下的这些数字写下来。
Let's try to do part of it in the head, so I can just write down the answer.
让我们先试试前面的一部分,我就直接写答案了
I can certainly try to write the number 13 there, but bam, my program very likely will crash if this chunk of memory was not given to me previously by the operating system and maybe it is owned by the operating system.
我当然可以在那里写下数字13,但是“嘣“,如果这块内存不是系统预先给我的,我的程序很可能会崩溃,可能这块内存,是系统本身使用的。
And this adds, now, a lot of power to the kinds of code I can write.
这也大大增加了,我能写的代码的功能范围。
The advantage of introducing that guy is that if you like, I can now write an equation for the acceleration as a vector.
引入它的好处是,如果你愿意的话,我可以把加速度写成矢量形式
You can write on the edge. I don't care.
你也可以写在边缘,我不在乎。
But literally all I can do at this stage is write what we would call a straight-line program, that is, a program in which we execute in which we execute the sequence of instructions one by one.
但是字面上来说,我们现在学到的,都是所谓的直线程序,也就是,一个接一个的执行,一系列的,指令的程序。
What we're really getting at is the idea of saying I want to have a way of grouping together information into units that make sense. So I can go back to one of those topics we had at the beginning, which is the idea of abstraction, that I can create one of those units as a simple entity, bury away the details and write really modular code.
组合成为有意义的单元,那么这就让我们回到,一开始讲的话题之一了,这就是抽象的概念,也就是我可以以一个简单的,实体的形式创建这样的一个单元,把具体实现隐藏然后写一些,真正模块化的代码,我们在以后的课程中。
I'm gonna run a.out and your teaser for the kinds of programs you can write after years and years and years of practice will give you output like this.
运行a,out,这类麻烦的程序,你多年多年之后也能写,因为最后的结果是这样的。
s1+s2 Instead I can write with impunity the solution will be s1 plus s2.
而我会写下解就是,毫无风险。
I can write this as d less than zero.
我可以把这个写成的d小于零。
I want to mention that 5 you're going to get problem-set five is posted today, and I'll write which ones you can already do so far, because you don't have class on Monday.
我要指出的是,今天会贴出来习题集,我会给出你们现在可以做的题目,因为周一没有课。
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写下来,下一步是什么?
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
应用推荐