随笔分类 -  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... 阅读全文
posted @ 2015-07-06 19:06 ChuckLu 阅读(300) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-07-05 20:14 ChuckLu 阅读(327) 评论(0) 推荐(0) 编辑
摘要:Find the capitalsDescription:InstructionsWrite a function that takes a single string (word) as argument. The function must return an ordered list cont... 阅读全文
posted @ 2015-07-05 18:48 ChuckLu 阅读(261) 评论(0) 推荐(0) 编辑
摘要:Area of a CircleDescription:Complete the functioncircleAreaso that it will return the area of a circle with the givenradius. Round the returned number... 阅读全文
posted @ 2015-07-05 17:55 ChuckLu 阅读(484) 评论(0) 推荐(0) 编辑
摘要:SequenceSumSum of 'n' Numberssum_of_n(orSequenceSum.sumOfNin Java,SequenceSum.SumOfNin C#) takes an integernand returns aList(anArrayin Java/C#) of le... 阅读全文
posted @ 2015-07-05 14:18 ChuckLu 阅读(332) 评论(0) 推荐(0) 编辑
摘要:shorter concat [reverse longer]Description:Given 2 strings,aandb, return a string of the form:shorter+reverse(longer)+shorter.In other words, the shor... 阅读全文
posted @ 2015-07-05 13:46 ChuckLu 阅读(306) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-07-05 13:18 ChuckLu 阅读(506) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-07-05 01:39 ChuckLu 阅读(382) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2015-07-05 00:51 ChuckLu 阅读(343) 评论(0) 推荐(0) 编辑
摘要:http://www.codewars.com/kata/54ff3102c1bad923760001f3/solutions/csharp判断给定的字符串有多少个a e i o uusing System;using System.Linq;public static class Kata{ ... 阅读全文
posted @ 2015-07-03 20:56 ChuckLu 阅读(430) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2015-07-03 19:21 ChuckLu 阅读(256) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2015-07-02 09:21 ChuckLu 阅读(819) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-07-01 21:50 ChuckLu 阅读(430) 评论(0) 推荐(0) 编辑
摘要:Complete The Pattern #2Description:Task:You have to write a functionpatternwhich creates the following pattern upto n number of rows.If the Argument i... 阅读全文
posted @ 2015-07-01 21:28 ChuckLu 阅读(402) 评论(0) 推荐(0) 编辑
摘要:Complete The Pattern #6 - Odd LadderTask:You have to write a functionpatternwhich creates the following pattern (see examples) up to the desired numbe... 阅读全文
posted @ 2015-07-01 18:06 ChuckLu 阅读(416) 评论(0) 推荐(0) 编辑
摘要:makeBackronym 主要考查的是字符串的处理,大小写转换,以及字符串的Linq处理Description:Definition-back·ro·nymnouna fanciful expansion of an existing acronym or word, such as “port ... 阅读全文
posted @ 2015-06-30 20:27 ChuckLu 阅读(292) 评论(0) 推荐(0) 编辑
摘要:Description:Regular Ball Super BallCreate a class Ball.Ball objects should accept one argument for "ball type" when instantiated.If no arguments are g... 阅读全文
posted @ 2015-06-30 18:24 ChuckLu 阅读(721) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-06-24 14:00 ChuckLu 阅读(958) 评论(0) 推荐(0) 编辑
摘要:Convert boolean values to strings 'Yes' or 'No'.Complete thebool_to_word(Javascript:boolToWord) method.Given: a boolean valueReturn: a 'Yes' string fo... 阅读全文
posted @ 2015-06-24 13:27 ChuckLu 阅读(647) 评论(0) 推荐(0) 编辑
摘要:Function 1 - hello worldMake a simple function calledgreetthat returns the most-famous "hello world!".Although this has been thought as a simple exerc... 阅读全文
posted @ 2015-06-24 13:23 ChuckLu 阅读(683) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示