随笔分类 - CodeWars
摘要:Pizza piecesDescriptionIn her trip to Italy, Elizabeth Gilbert made it her duty to eat perfect pizza. One day, she ordered one for dinner. And then so...
阅读全文
摘要:Description:In this kata you should simply determine, whether a given year is a leap year or not. In case you don't know the rules, here they are:year...
阅读全文
摘要:Find the capitalsDescription:InstructionsWrite a function that takes a single string (word) as argument. The function must return an ordered list cont...
阅读全文
摘要:Area of a CircleDescription:Complete the functioncircleAreaso that it will return the area of a circle with the givenradius. Round the returned number...
阅读全文
摘要:SequenceSumSum of 'n' Numberssum_of_n(orSequenceSum.sumOfNin Java,SequenceSum.SumOfNin C#) takes an integernand returns aList(anArrayin Java/C#) of le...
阅读全文
摘要:shorter concat [reverse longer]Description:Given 2 strings,aandb, return a string of the form:shorter+reverse(longer)+shorter.In other words, the shor...
阅读全文
摘要:Descending OrderDescription:Your task is to make a function that can take any non-negative integer as a argument and return it with it's digits in des...
阅读全文
摘要:254 shades of greyDescription:Why would we want to stop to only 50 shades of grey? Let's see to how many we can go.Write a function that takes a numbe...
阅读全文
摘要:Where is Vasya?Vasya stands in line with number of peoplep (including Vasya), but he doesn't know exactly which position he occupies. He can say that ...
阅读全文
摘要:http://www.codewars.com/kata/54ff3102c1bad923760001f3/solutions/csharp判断给定的字符串有多少个a e i o uusing System;using System.Linq;public static class Kata{ ...
阅读全文
摘要:Project Euler 85: Investigating the number of rectangles in a rectangular gridNumber of Rectangles in a GridGiven a grid of size m x n, calculate the ...
阅读全文
摘要:Factorial 计算阶乘In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to ...
阅读全文
摘要:Complete The Pattern #1Task:You have to write a functionpatternwhich creates the following pattern upto n number of rows.If the Argument is 0 or a Neg...
阅读全文
摘要:Complete The Pattern #2Description:Task:You have to write a functionpatternwhich creates the following pattern upto n number of rows.If the Argument i...
阅读全文
摘要:Complete The Pattern #6 - Odd LadderTask:You have to write a functionpatternwhich creates the following pattern (see examples) up to the desired numbe...
阅读全文
摘要:makeBackronym 主要考查的是字符串的处理,大小写转换,以及字符串的Linq处理Description:Definition-back·ro·nymnouna fanciful expansion of an existing acronym or word, such as “port ...
阅读全文
摘要:Description:Regular Ball Super BallCreate a class Ball.Ball objects should accept one argument for "ball type" when instantiated.If no arguments are g...
阅读全文
摘要:Counting sheep...Description:Consider an array of sheep where some sheep may be missing from their place. We need a function that counts the number of...
阅读全文
摘要:Convert boolean values to strings 'Yes' or 'No'.Complete thebool_to_word(Javascript:boolToWord) method.Given: a boolean valueReturn: a 'Yes' string fo...
阅读全文
摘要:Function 1 - hello worldMake a simple function calledgreetthat returns the most-famous "hello world!".Although this has been thought as a simple exerc...
阅读全文