Corinne.与现充少女

Thinking will not overcome fear but action will.

Replace With Alphabet Position

20180922_Codewars_alphabet_position

Replace With Alphabet Position Codewars Kata 14√ Description Link: alphabet_position -简述:本题给定一个英文句子的字符串,要求把字母转换成数字,a对应1,b对应2,以此类推。 -思路:遍历每个字母转换为数字。 -难点:无 In this kata you are required to, given a...

Statistics for an Athletic Association

20180921_Codewars_stat_CAA

Statistics for an Athletic Association Codewars Kata 13√ Description Link: stat_CAA -简述:本题以时|分|秒的数字形式给定一系列长跑运动员的时间成绩,求出其范围、平均值和中位数。 -思路:将数字形式转换为具体时间,求range average medium,然后再将他们转换为数字形式。 -难点:1 form...

Product of consecutive Fib numbers

20180919_Codewars_productFib

Product of consecutive Fib numbers Codewars Kata 11√ Description Link: productFib -简述:本题给定一个数字,问它是哪两个fibonacci数字的乘积 -思路:已知fibonacci数字是如何得到的,根据其进行求解 -难点:while循环简便 The Fibonacci numbers are the num...

Rot13

20180918_Codewars_rot13

Rot13 Codewars Kata 10√ Description Link: rot13 -简述:本题给定一个单词,要求将每个字母在字母表中向前或向后移动13位,返回移动后的单词。 -思路:正则筛选替换 -难点:无 ROT13 is a simple letter substitution cipher that replaces a letter with the letter ...

The highest profit wins!

20180917-Codewars-Min_max

The highest profit wins! Codewars Kata 9√ 本题考算法,不可直接调用函数 Description Link: Min_max -简述:本题给定一列数字,通过算法求出其最大值和最小值。 -思路:遍历该列数字,比较大小。(不可用min和max函数,考的是循环算法) -难点:无 Story Ben has a very simple idea to ...

Counting Duplicates

20180916_Codewars_duplicate_count

Counting Duplicates Codewars Kata 8√ Description Link: duplicate_count -简述:本题给定一个字符串,求其中重复字符(次数大于1)的个数。 -思路:直接counter求解,注意生成字典或列表的形式 -难点:无 Count the number of Duplicates Write a function that wil...

Take a Number And Sum Its Digits Raised To The Consecutive Powers And ....¡Eureka!!

20180914_Codewars_sum_dig_pow

Take a Number And Sum Its Digits Raised To The Consecutive Powers And ….¡Eureka!! Codewars Kata 6√ Description Link: sum_dig_pow -简述:本题假设一种数字特性,如89 = 8^1 + 9^2,135 = 1^1 + 3^2 + 5^3,给定一个数字范围,求出该范围...

Sum without highest and lowest number

20180913_Codewars_sum_array

Sum without highest and lowest number Codewars Kata 5√ Description Link: sum_array -简述:本题给定一列数字,要求去掉其最大值和最小值后求和。 -思路:求最大最小值,去掉,求和。 -难点:无 Sum all the numbers of the array (in F# and Haskell you ge...

Printer error

20180912_Codewars_printer_error

Printer error Codewars Kata 4√ Description Link: printer_error -简述:本题假设一个打印机的错误检查,若打印内容不在字母a-m内,则报错,输出错误次数。 -思路:运用正则找出所有异常数字 -难点:无 In a factory a printer prints labels for boxes. For one kind of ...

IQ test

20180911_Codewars_iq_test

IQ test Codewars Kata 3√ Description Link: iq_test -简述:本题给定一列数字,要求找出其中最特殊的那一个(奇数中的偶数,偶数中的奇数) -思路:用列表推导,找到奇数和偶数,判断求异 -难点:无 Bob is preparing to pass IQ test. The most frequent task in this test is ...