两个算法题
<br /><br />题目描述:(minimum swaps)<br />Given a sequence, we have to find the minimum no of swaps required to sort the sequence.<br />分析:<br />formula: no. of elements out of place - "cycles" in the sequence<br />A cycle is a set of elements, each of whic
转载
2010-09-27 20:13:00 ·
475 阅读 ·
0 评论