![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codewars
z_victoria123
这个作者很懒,什么都没留下…
展开
-
codewars解题笔记---DNA to RNA Conversion
题目Deoxyribonucleic acid, DNA is the primary information storage molecule in biological systems. It is composed of four nucleic acid bases Guanine ('G'), Cytosine ('C'), Adenine ('A'), and Thymine ('...原创 2019-01-18 10:33:47 · 292 阅读 · 0 评论 -
codewars解题笔记---If you can't sleep, just count sheep!!
题目Given a non-negative integer, 3 for example, return a string with a murmur: "1 sheep...2 sheep...3 sheep...". Input will always be valid, i.e. no negative integers.解析传入一个数字n,输出1 sheep...2 shee...原创 2019-01-17 16:42:02 · 780 阅读 · 0 评论 -
codewars解题笔记---Tip Calculator
题目Complete the function, which calculates how much you need to tip based on the total amount of the bill and the service.You need to consider the following ratings:Terrible: tip 0% Poor: tip 5%...原创 2019-01-18 16:54:09 · 453 阅读 · 0 评论 -
codewars解题笔记---Merging sorted integer arrays (without duplicates)
题目:Write a function that merges two sorted arrays into a single one. The arrays only contain integers. Also, the final outcome must be sorted and not have any duplicate.解析:编写一个函数,将两个排序后的数组合并为一个数...原创 2019-01-21 15:16:40 · 195 阅读 · 0 评论 -
codewars解题笔记---Where is THB?
题目Help! THB has gone missing, and we need you to find him! You will be given a string, and must return a string including only the t's, h's, and b's from the original string. Include both uppercase ...原创 2019-01-22 09:19:02 · 299 阅读 · 0 评论 -
codewars解题笔记---Grasshopper - Summation
题目Write a program that finds the summation of every number from 1 to num. The number will always be a positive integer greater than 0.For example:summation(2) -> 31 + 2summation(8) -> ...原创 2019-01-23 09:12:01 · 217 阅读 · 0 评论 -
codewars解题笔记---Lario and Muigi Pipe Problem
题目#Issue Looks like some hoodlum plumber and his brother has been running around and damaging your stages again.The pipes connecting your level's stages together need to be fixed before you reciev...原创 2019-01-23 11:40:16 · 647 阅读 · 0 评论 -
codewars解题笔记---Welcome to the City
题目:Create a method sayHello/say_hello/SayHello that takes as input a name, city, and state to welcome a person. Note that name will be an array consisting of one or more values that should be joined...原创 2019-01-23 14:37:16 · 468 阅读 · 0 评论