2017年4月27日

Codility---FrogRiverOne

摘要: Task description A small frog wants to get to the other side of a river. The frog is initially located on one bank of the river (position 0) and wants 阅读全文

posted @ 2017-04-27 21:17 Hugh_Sun 阅读(396) 评论(0) 推荐(0)

Codility---PermCheck

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. A permutation is a sequence containing each element from 1 to N o 阅读全文

posted @ 2017-04-27 20:37 Hugh_Sun 阅读(285) 评论(0) 推荐(0)

Codility---MissingInteger

摘要: Task description Write a function: class Solution { public int solution(int[] A); } that, given a non-empty zero-indexed array A of N integers, return 阅读全文

posted @ 2017-04-27 20:06 Hugh_Sun 阅读(278) 评论(0) 推荐(0)

Codility--- TapeEquilibrium

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. Array A represents numbers on a tape. Any integer P, such that 0 阅读全文

posted @ 2017-04-27 19:51 Hugh_Sun 阅读(334) 评论(0) 推荐(0)

Codility---FrogJmp

摘要: Task description A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position g 阅读全文

posted @ 2017-04-27 19:04 Hugh_Sun 阅读(250) 评论(0) 推荐(0)

Codility----PermMissingElem

摘要: Task description A zero-indexed array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which mean 阅读全文

posted @ 2017-04-27 18:30 Hugh_Sun 阅读(290) 评论(0) 推荐(0)

Codility----OddOccurrencesInArray

摘要: Task description A non-empty zero-indexed array A consisting of N integers is given. The array contains an odd number of elements, and each element of 阅读全文

posted @ 2017-04-27 18:08 Hugh_Sun 阅读(404) 评论(0) 推荐(0)

Codility---BinaryGap

摘要: Task description A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the 阅读全文

posted @ 2017-04-27 18:02 Hugh_Sun 阅读(372) 评论(0) 推荐(0)

Codility------CyclicRotation

摘要: Task description A zero-indexed array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index 阅读全文

posted @ 2017-04-27 17:47 Hugh_Sun 阅读(325) 评论(0) 推荐(0)

2017年4月20日

OpenCv的python环境搭建

摘要: 1、python的安装参看 http://www.cnblogs.com/samo/p/6734403.html 2、OpenCv安装。opencv2.4.10可以支持vc10/vc11/vc12,opencv2.4.12支持vc11/vc12 。在此处由于我已安装vs2010,故从 http:// 阅读全文

posted @ 2017-04-20 11:16 Hugh_Sun 阅读(226) 评论(0) 推荐(0)

导航