刷题备忘录,for bug-free leetcode 396. Rotate Function 题意: Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a "rotation function" F on A as follow: F(k…
安装bugfree后,访问报错:CDbConnection 无法开启数据库连线: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '192.168.0.99' (4) 现象:虚机的ip是192.168.1.188,但是192.168.1.188/bugfree去访问的时候,提示连接不到192.168.0.99. 尝试解决: ip的配置是在程序的配置文件里配置的 1.可能是mysql没启动,查看mysql的运行情况:service m…