我简直不敢回头,前面说不定也有什么怪物在等着我们呢。
I'm afeard to turn around, becuz maybe there's others in front a-waiting for a chance.
除了那些诸多不便和没有热水澡以外,前面还有什么在等着我呢?
What lies ahead for me apart from those discomforts and a lack of soap?
对亚伦说,你且为我们造些神像,在我们前面引路。因为领我们出埃及地的那个摩西,我们不知道他遭了什么事。
Saying unto Aaron, Make us gods to go before us: for as for this Moses, which brought us out of the land of Egypt, we wot not what is become of him.
At the end of the first round, I've got the smallest element at the front. At the end of the second round, I've got the smallest two elements at the front, in fact I got all of them sorted out. And it actually runs through the loop multiple times, making sure that it's in the right form.
看看发生了什么,在第一轮结束后,我把最小的元素移到了前面,第二轮结束后,我把最小的,两个元素移到了前面,实际上,所有的元素都排好序了,实际上,这个算法运行了几次循环,确认下这是正确的形式。
The order complexity here, if I actually write it would be-- sorry, order n times m, and if m was equal to n, that would be order n squared, and this is quadratic.
如果m等于n的话,也就是n的平方,这是一个平方复杂度的问题,这是和前面不同类型的,好,我在做什么呢?
应用推荐