2016年9月1日

counting elements--codility

摘要: "lesson 4: counting elements " "1. FrogRiverOne" "2. PermCheck" "3. MissingInteger" "4. MaxCounters" lesson 4: counting elements exercise Problem: You 阅读全文

posted @ 2016-09-01 23:46 xweel 阅读(550) 评论(0) 推荐(0)

Time complexity--codility

摘要: lesson 3: Time complexity exercise: Problem: You are given an integer n. Count the total of 1+2+...+n. 1. TapeEquilibrium [100%] Minimize the value |( 阅读全文

posted @ 2016-09-01 23:44 xweel 阅读(243) 评论(0) 推荐(0)

Arrays--codility

摘要: lesson 2: Arrays exercise: Problem: Given array A consisting of N integers, return the reversed array. 1. CyclicRotation [100%] Rotate an array to the 阅读全文

posted @ 2016-09-01 23:40 xweel 阅读(300) 评论(0) 推荐(0)

Iterations --codility

摘要: lesson 1:Iterations 1. BinaryGap [100%] Find longest sequence of zeros in binary representation of an integer. A binary gap within a positive integer 阅读全文

posted @ 2016-09-01 23:35 xweel 阅读(193) 评论(0) 推荐(0)

导航