Skip to content

Commit af084a3

Browse files
1 parent bbe42eb commit af084a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ch5/ch5-06.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ <h2>5.6. 匿名函数</h2>
613613
// ...
614614
}
615615
</code></pre>
616-
<p>在toposort程序的输出如下所示,它的输出顺序是大多人想看到的固定顺序输出,但是这需要我们多花点心思才能做到。哈希表prepreqs的value是遍历顺序固定的切片,而不再试遍历顺序随机的map,所以我们对prereqs的key值进行排序,保证每次运行toposort程序,都以相同的遍历顺序遍历prereqs。</p>
616+
<p>在toposort程序的输出如下所示,它的输出顺序是大多人想看到的固定顺序输出,但是这需要我们多花点心思才能做到。哈希表prepreqs的value是遍历顺序固定的切片,而不再是遍历顺序随机的map,所以我们对prereqs的key值进行排序,保证每次运行toposort程序,都以相同的遍历顺序遍历prereqs。</p>
617617
<pre><code>1: intro to programming
618618
2: discrete math
619619
3: data structures

0 commit comments

Comments
 (0)