算法练习
文章平均质量分 72
lkangkang
这个作者很懒,什么都没留下…
展开
-
CodeWars: [5 kyu] Perimeter of squares in a rectangle
The drawing shows 6 squares the sides of which have a length of 1, 1, 2, 3, 5, 8. It's easy to see that the sum of the perimeters of these squares is : 4 * (1 + 1 + 2 + 3 + 5 + 8) = 4 * 20 = 80 //给出了...原创 2018-09-16 11:34:39 · 756 阅读 · 0 评论 -
CodeWars:[5 kyu] The Hashtag Generator
The marketing team is spending way too much time typing in hashtags. Let's help them with out own Hashtag Generator! Here's the deal: //将字符串去掉空格,以‘#’打头,并且大写每个单词的首字母。 It must start with a hashta...原创 2018-09-17 22:00:20 · 382 阅读 · 0 评论 -
CodeWars: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, drinks i...原创 2018-09-13 14:33:01 · 431 阅读 · 0 评论 -
CodeWars:Decode the Morse code
Part of Series 1/3 This kata is part of a series on the Morse code. After you solve this kata, you may move to the next one. In this kata you have to write a simple Morse code decoder. While the Mo...原创 2018-09-14 10:14:53 · 1119 阅读 · 1 评论 -
CodeWars:What's a Perfect Power anyway?
A perfect power is a classification of positive integers: In mathematics, a perfect power is a positive integer that can be expressed as an integer power of another positive integer. More formally, ...原创 2018-09-15 11:53:39 · 828 阅读 · 0 评论