Generally speaking, most configurations align every row of stars with the gaps of the previous row, making the stars less cramped.
总的说来,多数模式中每行星星的排列将对准上一行星星之间的空隙,插空排列,以使得其更为舒展。
Every time you reach the end of the current row, you set the previous row to the current row, and start from the beginning of the row again.
每次你到达当前行,设置一行到当前行,并开始从一开始的行了。
Note that when you're calculating the next row of the table in the dynamic programming solution to solve the LCS problem, you only need the previous row and your current row.
请注意,当你计算下一行的表动态规划解决方案解决LCS问题,你只需要前面的行和你当前的行。
应用推荐