I'm going to define a class, and in particular, what I'm going to do, is walk through what that says.
我们碰到了一个问题,这个问题就是,我们想要建立,一个抽象数据类型。
Just looking around, I like the...how you walk up in a circular...what do they call, the rotunda.
我们就是到处看看……我喜欢那个……喜欢走上那个圆形的……被他们叫做“圆形大厅”的建筑。
So what would I want to do? I'd like to somehow walk down each of the digits one at a time and add them up. Ah, that's a looping mechanism, right? I need to have some way of walking through them.
去取这个数的,每个数字然后把他们加起来,啊,这是个循环机制对不对?,我得找到一个遍历它们的方法,一种简单的方法可能。
And then he said at the end: "Do justice, love mercy and walk humbly with our God. " And the last value I talked about is faith.
最后他说:,坚持正义,学会宽容,谦逊地跟从神“,我要说的最后一种价值观是信仰。
And, believe it or not, I have students walk in and first thing a hand goes up and says do you have a pen? I cannot believe it.
不管信不信,我有些学生走进来,第一件事就举起手问,你有没有笔,难以置信。
I do think you'll have to walk and talk if you are teaching something.
我确实认为如果你想教什么你就必须擅长。
See my friends, go drink, go for a drink, go for a walk, get to the countryside, cycle, I like cycling, I do that.
看朋友,去酒吧,去喝酒,散步,去乡下,骑自行车,我喜欢骑自行车,我就做这些事。
For me, I like to walk here, I like to run, I do stretches,
对我来说,我喜欢在这儿走路,跑步,拉伸。
Figure out what I'm trying to walk through What's the collection of things I'm trying to walk through. Figure out what I want to do at each stage. Figure out what the end test is.
弄清楚需要遍历的东西,弄清楚我需要遍历的东西的集合,弄清楚我在每一步该做什么,弄清楚终结测试。
I've got a list, walk you through it an element at a time, do I look at each element of the list more than once?
你一次只能得到他的一个元素,我是不是把数组里面的每个元素,都过了大于等于一次?,你不这样认为么?大家有什么建议?
Well let's see. My fall back is, I could just do linear search, walk down the list one at a time, just comparing those things. OK. So that's sort of my base. But what if I wanted, you know, how do I want to get to that sorted list? All right?
我只能做线性搜索了,一次遍历一遍列表,一个一个比较,但如果我想要,那怎样得到有序的列表呢?,现在的一个问题是,我们排序之前?
应用推荐