
codewar
lxhguard
腾讯前端
展开
-
codewar----array二进制
Description: Given an array of one's and zero's convert the equivalent binary value to an integer. Eg: [0, 0, 0, 1] is treated as 0001 which is the binary representation of 1. Examples: Testing: ...原创 2018-11-23 23:07:43 · 165 阅读 · 0 评论 -
codewar ----- 累加
Given two integers a and b, which can be positive or negative, find the sum of all the numbers between including them too and return it. If the two numbers are equal return a or b. Note: a and b are ...原创 2018-11-24 00:08:29 · 286 阅读 · 0 评论