Programming Model
1 . 环境配置,运行例子程序
教程:https://lift.cs.princeton.edu/java/windows/
source code 在 github上面:https://github.com/kevin-wayne/algs4/
IntelliJ IDEA Community Edition有时候重启会出现找不到窗口的情况,找到 .idea 目录下面的workspace.xml 文件,修改以下几行,这是一个没有设置相对位置的bug
setting
<option name="x" value="1960" />
<option name="y" value="12" />
to 0/0, like this
<option name="x" value="0" />
<option name="y" value="0" />
should put the window within available one.
2. 给了几个toy code 小练习


另外的洗牌算法
https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Sattolo.27s_algorithm


网友评论