
CodeWars
happymff
从事测试10年+,在APP、Web、后端服务、机器人、蓝牙等方向有实际工作经验,并有5年+的管理经验~
展开
-
CodeWars 计算一个城市的降雨量
dataand data1 are two strings with rainfall records of a few cities for months from January to December. The records of towns are separated by \n. The name of each town is followed by :.data and towns原创 2017-04-28 18:09:25 · 550 阅读 · 0 评论 -
CodeWars 关于字符串包含问题
Description:Write function scramble(str1,str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise returns false.For example: str1 is ‘rkqodlw’ and str2 is ‘wo原创 2017-04-26 11:36:49 · 1001 阅读 · 0 评论 -
CodeWars 编解码问题
public class Kata { public static String encrypt(final String text, int n) { if (n <= 0 || text == null || text.isEmpty()) { return text; }原创 2017-04-25 18:24:27 · 414 阅读 · 0 评论 -
CodeWars 给定数值的阶乘结果中包含多少0
Description:Write a program that will calculate the number of trailing zeros in a factorial of a given number.http://mathworld.wolfram.com/Factorial.htmlN! = 1 * 2 * 3 * 4 … Nzeros(12) = 2 # 1 * 2 * 3原创 2017-04-26 17:16:37 · 296 阅读 · 0 评论 -
用正则表达式实现查出二进制数是3的倍数
import java.util.regex.Pattern;public class BinaryRegexp { public static Pattern multipleOf3() { // Regular expression that matches binary inputs that are multiple of 3 return Patte原创 2017-05-17 21:43:30 · 4828 阅读 · 2 评论 -
CodeWars 排队买票的人手持25,50,100,判断当前的零钱是否够找零
*Description:The new “Avengers” movie has just been released! There are a lot of people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 dollars bill. A “Avenge原创 2017-04-26 23:57:58 · 618 阅读 · 0 评论