摘要: 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 阅读(260) 评论(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 阅读(482) 评论(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 阅读(330) 评论(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) 编辑
摘要: 源自 Difference between String.Join() vs String.Concat() With .NET 4.0, String.Join() uses StringBuilder class internally so it is more efficient.Wherea 阅读全文
posted @ 2015-07-05 13:03 ChuckLu 阅读(1590) 评论(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 阅读(381) 评论(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) 编辑