摘要: #__author__=lx#__date__=2011-09-27#__brief_=shell_sortdef shell_sort( l ): gap = 0 n = len( l ) while ( gap <= n ): gap = gap * 3 + 1 while ( gap > 0 ): i = gap while ( i < n ): j = i - gap ... 阅读全文
posted @ 2011-09-27 09:29 lxgeek 阅读(148) 评论(0) 推荐(0)