18.11 Imagine you have a square matrix, where each cell (pixel) is either black or white. Design an algorithm to find the maximum subsquare such that all four borders are filled with black pixels. LeetCode上的原题,请参见我之前的解法Maximal Square.书上给了两种解法,但是比较长:…
在官方网站下载.run文件安装后,qtcreator启动失败,然后找到命令行启动,失败原因如下: shr@shr-Sieyuan:~/Qt5.3.2/Tools/QtCreator/bin$ ./qtcreatorQXcbConnection: Failed to initialize XRandrQt: XKEYBOARD extension not present on the X server.Could not initialize OpenGL for RasterGLSurface,…
10.04 先将 ubuntu server 的 iso 放到优盘上,然后在提示无法找到光驱时,按 alt+f2 打开一个新的 console 窗口,将 iso mount 上,具体操作如下: ls /dev/sd* mkdir /mnt/usb /mnt/iso mount -t vfat /dev/sdc1 /mnt/usb mount -t iso9660 -o loop /mnt/usb/ubuntu-10.10-server-amd64.iso /mnt/iso 注意第二行的设备名需要…
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://old-releases.ubuntu.com/ubuntu/ n…