It depends on n and k but obviously as n gets big, that one is going to be better.
但是很明显,当n取很大的值的时候,前者要比后者好。
麻省理工公开课 - 计算机科学及编程导论课程节选
应用推荐
模块上移
模块下移
不移动