刷题
文章平均质量分 58
爱咖啡的野指针
计算机系在读本科生
展开
-
Codility: BinaryGap
BinaryGap: Find longest sequence of zeros in binary representation of an integer (Easy)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 binary representation of N.For exa原创 2021-03-28 16:28:53 · 174 阅读 · 0 评论 -
Codility算法题:MissingInteger
Codility经典算法题之九:MissingIntegerFind the smallest positive integer that does not occur in a given sequence. (Medium)This is a demo task.Write a function:def solution(A)that, given an array A of N integers, returns the smallest positive integer (greater原创 2021-03-28 15:15:37 · 624 阅读 · 0 评论