摘要: 建议不要安装3.0以上版本,但是2.4.10版本又不支持gpu,真TM坑爹,应该可以用2.4.12版本。我装的是cuda8.0+opencv2.4.13 1、首先下载opencv2.4.12版本 http://opencv.org/downloads.html 2、安装依赖包 3、build ope 阅读全文
posted @ 2017-03-22 22:22 世人谓我恋长安 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 14. Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. 要求一个字符串数组里面最长公共前缀字符串(数组里面所有字符串) 一开始求成 阅读全文
posted @ 2017-03-22 21:51 世人谓我恋长安 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 476. Number Complement Example 1: Example 2: 求一个数的补码。 另一种解法: 举个例子:100110, 它的补码是 011001, 和是 111111. 所以我们先求和num的二进制长度相同全为一的数,然后做减法 阅读全文
posted @ 2017-03-22 15:14 世人谓我恋长安 阅读(194) 评论(0) 推荐(0) 编辑