codewars
cxc_happy111
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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. Sample Tests: import org.ju...原创 2019-01-18 14:10:11 · 641 阅读 · 0 评论 -
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 Thymin...原创 2019-01-18 15:52:33 · 376 阅读 · 0 评论 -
codewars解题笔记---A Strange Trip to the Market
Instructions: You're on your way to the market when you hear beautiful music coming from a nearby street performer. The notes come together like you wouln't believe as the musician puts together patt...原创 2019-01-22 09:16:30 · 522 阅读 · 1 评论 -
codewars解题笔记---Opposite number
Instructions: Very simple, given a number, find its opposite. Examples: 1: -1 14: -14 -34: 34 Sample Tests: import org.junit.Test; import static org.junit.Assert.assertEquals; public class Op...原创 2019-01-22 09:30:45 · 494 阅读 · 0 评论 -
codewars解题笔记---Grasshopper - Summation
Instructions: 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) -> 3 1 +...原创 2019-01-23 08:52:23 · 378 阅读 · 0 评论 -
codewars解题笔记---Function 1 - hello world
Description: Make a simple function called greet that returns the most-famous "hello world!". Test Driven Development (TDD) import org.junit.Test; import static org.junit.Assert.assertEquals; impo...原创 2019-01-23 09:01:33 · 539 阅读 · 1 评论 -
codewars解题笔记---The Feast of Many Beasts
Instructions: All of the animals are having a feast! Each animal is bringing one dish. There is just one rule: the dish must start and end with the same letters as the animal's name. For example, the...原创 2019-01-23 14:08:22 · 591 阅读 · 0 评论 -
codewars解题笔记---L1: Set Alarm
Instructions: Write a function named setAlarm which receives two parameters. The first parameter, employed, is true whenever you are employed and the second parameter, vacation is true whenever you a...原创 2019-01-23 14:17:16 · 777 阅读 · 0 评论
分享