自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 Codility-FigFrog

The Fibonacci sequence is defined using the following recursive formula: F(0) = 0 F(1) = 1 F(M) = F(M - 1) + F(M - 2) if M >= 2A small frog wants to get to the other side of a river.

2014-09-24 15:57:32 661

原创 Codility-FibFrog

The Fibonacci sequence is defined using the following recursive formula: F(0) = 0 F(1) = 1 F(M) = F(M - 1) + F(M - 2) if M >= 2A small frog wants to get to the other side of a river.

2014-09-24 15:45:58 2470

原创 Codility-ChocolatesByNumbers

Task descriptionTwo positive integers N and M are given. Integer N represents the number of chocolates arranged in a circle, numbered from 0 to N − 1.You start to eat the chocolates. After eat

2014-08-29 21:21:46 1463

原创 Codility-CountNonDivisible

Task descriptionYou are given a non-empty zero-indexed array A consisting of N integers.For each number A[i] such that 0 ≤ i For example, consider integer N = 5 and array A such that:

2014-07-30 16:35:21 1119

原创 Codility-Flags

Task descriptionA non-empty zero-indexed array A consisting of N integers is given. Apeak is an array element which is larger than its neighbours. More precisely, it is an index P such that 0 A

2014-07-29 16:08:10 1570

原创 Codility-Peak

Task descriptionA non-empty zero-indexed array A consisting of N integers is given.A peak is an array element which is larger than its neighbors. More precisely, it is an index P such that 0

2014-07-27 15:33:39 843

原创 Codility-MinPerimeterRectangle

Task descriptionAn integer N is given, representing the area of some rectangle.The area of a rectangle whose sides are of length A and B is A * B, and the perimeter is 2 * (A + B).The goal i

2014-07-26 10:15:30 758

原创 Codility-MaxSliceSum&MaxDoubleSlice

Task descriptionA non-empty zero-indexed array A consisting of N integers is given.A triplet (X, Y, Z), such that 0 ≤ X double slice.The sum of double slice (X, Y, Z) is the total of A[X + 1

2014-07-25 10:49:39 928

原创 Codility-MaxProfit

Task descriptionA zero-indexed array A consisting of N integers is given. It contains daily prices of a stock share for a period of N consecutive days. If a single share was bought on day P and

2014-07-24 11:05:38 886

原创 Codility-EquiLeader

Task descriptionA non-empty zero-indexed array A consisting of N integers is given.The leader of this array is the value that occurs in more than half of the elements of A.An equi leader is

2014-07-23 15:45:08 1468

原创 Codility-Dominator

Task descriptionA zero-indexed array A consisting of N integers is given. The dominatorof array A is the value that occurs in more than half of the elements of A.For example, consider array A

2014-07-22 16:11:21 1010

原创 Codility-Fish

Task descriptionYou are given two non-empty zero-indexed arrays A and B consisting of N integers. Arrays A and B represent N voracious fish in a river, ordered downstream along the flow of the r

2014-07-22 10:37:46 748

原创 Codility-StoneWall

You are going to build a stone wall. The wall should be straight and N meters long, and its thickness should be constant; however, it should have different heights in different places. The height of t

2014-07-21 16:10:23 1004

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除