上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: 思路:给出一个数组找出里面三个元素乘积的最大 阅读全文
posted @ 2017-08-11 15:00 两猿社 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 参考资料:http://www.cnblogs.com/lihao602/archive/2013/05/08/3067239.html; http://blog.csdn.net/zhoubo616819598/article/details/10977915 我参考的是opencl实战,里面覆盖 阅读全文
posted @ 2017-08-11 10:45 两猿社 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 参考:http://jingyan.baidu.com/article/c85b7a640cd7d6003bac95f8.html 安装ubuntn重启后出现grub secure界面的原因是在安装过程中强制开关机,导致i386的grub文件被损坏。 开机错误代码如下: error: file '/ 阅读全文
posted @ 2017-08-10 16:20 两猿社 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2017-08-10 16:13 两猿社 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2017-08-08 15:37 两猿社 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 参考:http://lib.csdn.net/article/opencv/25737; http://blog.csdn.net/yiranyhy/article/details/72935499; http://tscsh.blog.163.com/blog/static/20032010320 阅读全文
posted @ 2017-08-08 09:52 两猿社 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2017-08-05 11:05 两猿社 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2017-08-04 16:04 两猿社 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 基础知识: ubuntn中的/表示根目录,包括bin,mnt等文件夹 /home表示家目录,/home/user表示用户下的家目录,/root表示root目录 常用指令: 进入root : sudo su 或者 sudo -i,其中sudo su之后的路径和目录是/home/user,sudo -i 阅读全文
posted @ 2017-08-04 15:00 两猿社 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
posted @ 2017-08-04 09:46 两猿社 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页