And when you have an optimal substructure and the local solutions overlap, that's when you can bring dynamic programming to bear.
当你得到一个最优子结构,但局部解决方案有重跌时,你就可以引入动态编程,来解决这个问题了。
Takes a start and an end point, just going to bind local variable names start and end to those pieces.
有一个开始和结束点,就是去把局部的变量的名字,和这些点进行绑定。
There's still a lot more of the text and so that first fragment a part, but I immediately begin to form an opinion about this part with respect to an imagined or supposed whole.
文本中的很多还没有读,但是那第一个片段成为了一个局部,但是我立即对这个局部有了自己的想法,并且开始设想全文。
So variables you were introduced to in scratch, and there was this idea of global and local variables, but scratch called them something a little different.
在scratch中所介绍的变量,这里有一个全局变量和局部变量概念,但是scratch中有不同的叫法。
foo So everything is literally going back to back to back and so foo, similarly, if you have any local variables, like temp, it then goes here.
所以所有东西都背靠背紧邻着,所以对于,类似的,如果你有任何局部变量,像temp,它前进到这里。
应用推荐