Right, so s of i saying, given the list, look at the i'th element, true is it the same thing?
第2个元素,看他们是不是相等呢?,如果他们相等,好,把答案设置为?
I'm actually in some ways glad that I do have this sort of structured, rigid class situation
某种程度上我会为自己的严格设置的课程体系感到庆幸,
Which may take up some arbitrary amount of memory. In that case, I'm back to this problem.
然后将接下来的每一个内存块设置为,指向数组对应元素值的指针。
For a long time MIT has not had a laboratory associated with large courses.
麻省理工很长一段时间以来,都没有为大课设置实验室。
In the 1960s, to have a protagonist go into the world and discover this incredibly complex set of patterns, and to have that protagonist be a housewife, was very much playing against type.
在60年代让一个主角深入世界,去探索它难以置信的复杂,而且将其设置为一个家庭主妇,是与常规背道而驰的。
The problem it solves for the cell is how to do I make a barrier around myself to define what's in me and what's outside of me when most of what's around me and what's in me is water.
它为细胞解决的问题是,当我体外和体内大部分都是水情况下,我怎样在自己周围设置一个界线,来区分什么是体内的,什么是体外的
To be systematic, I'm going to build this tree depth-first left-first.
为了保持系统性,我将要把这棵树设置,为深度优先和左边优先。
I'll let you just grok it but you can see it's basically doing what I did over there. Setting up two indices for the two sub-list,it's just walking down, finding the smallest element, putting it into a new list. When it gets to the end of one of the lists, it skips to the next part, and only one of these two pieces will get called because only one of them is going to have things leftovers.
你们可以大体的浏览一下,但是它们基本就是我在那里所做的事情,为两个子列表设置了两个指针,指针顺着列表走下去,找到最小的元素,把它放入到一个新的列表中去,当它走到一个列表的尾部时,它会跳到下部分去,两部分中只有一个会被执行,因为只有一个会有元素剩余。
And that shows you one other nice little thing we want to do, which is if I look in this code notice I set up a variable up here called false Solution Found, initially bound to false.
这显示了我们想要做的另一件事,那就是我在这段代码中设置了一个,名为Solution,Found的变量,初始值设为。
应用推荐