Codewars刷题
Howar Yick
这个作者很懒,什么都没留下…
展开
-
Codewars刷题升级 (Python)7Kyu Find the divisors! 找除数
题目描述:Create a function named divisors/Divisors that takes an integer n > 1 and returns an array with all of the integer’s divisors(except for 1 and the number itself), from smallest to largest. I...原创 2019-05-21 21:59:03 · 271 阅读 · 0 评论 -
Codewars刷题升级 (Python)7Kyu Shortest Word 最短单词
题目描述:Simple, given a string of words, return the length of the shortest.word(s).String will never be empty and you do not need to account for different data types.很简单,给定一串单词,返回最短单词的长度。字符串永远不会为空,您...原创 2019-05-22 21:38:13 · 369 阅读 · 0 评论 -
Codewars刷题升级 (Python)7Kyu Categorize New Member 新会员分类
题目描述:The Western Suburbs Croquet Club has two categories of membership, Senior and Open. They would like your help with an application form that will tell prospective members which category they wil...原创 2019-05-30 11:07:32 · 540 阅读 · 0 评论 -
Codewars刷题升级 (Python)6Kyu Which are in? 谁在里面?
题目描述:Given two arrays of strings a1 and a2 return a sorted array r inlexicographical order of the strings of a1 which are substrings ofstrings of a2.给定两个字符串列表:a1和a2,返回一个按字典顺序排序的字符串列表r,r列表中的字符串是a1...原创 2019-06-13 17:27:01 · 302 阅读 · 0 评论 -
Codewars刷题升级 (Python)5Kyu Pete, the baker 皮特,面包师
题目描述:Pete likes to bake some cakes. He has some recipes and ingredients. Unfortunately he is not good in maths. Can you help him to find out, how many cakes he could bake considering his recipes?皮特...原创 2019-06-18 22:32:47 · 889 阅读 · 0 评论 -
Codewars刷题升级 (Python)6Kyu Array.diff 数组的不同之处
题目描述:Your goal in this kata is to implement a difference function, which subtracts one list from another and returns the result.此训练的目的是制定一个差别函数,用一个列表减去另一个列表,并返回结果。It should remove all values fro...原创 2019-06-26 22:58:09 · 606 阅读 · 0 评论 -
Codewars刷题升级 (Python)6Kyu Mexican Wave 墨西哥人浪
题目描述:In this simple Kata your task is to create a function that turns a string into a Mexican Wave. You will be passed a string and you must return that string in an array where an uppercase letter ...原创 2019-06-24 19:27:11 · 636 阅读 · 0 评论 -
Codewars刷题升级 (Python)5Kyu Double Cola 双份可乐
题目描述:Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys a can, d...原创 2019-06-28 15:41:49 · 526 阅读 · 1 评论