刷题
文章平均质量分 74
huozheshusiqu
程序员
展开
-
Human Readable Time-人类可读时间
我的个人博客更多内容,请跳转我的个人博客题目Human Readable Time人类可读时间描述Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)编写一个函数,以非负整数(秒)作为输入,并以可读格式(HH:MM:SS)返回时间HH = hours, padded to 2 dig原创 2022-03-07 15:03:25 · 251 阅读 · 0 评论 -
The Hashtag Generator - Hashtag生成器
我的个人博客更多内容,请跳转我的个人博客题目The Hashtag GeneratorHashtag生成器描述The marketing team is spending way too much time typing in hashtags.Let’s help them with our own Hashtag Generator!Here’s the deal:It must start with a hashtag (#).All words must have their原创 2022-03-02 16:35:49 · 788 阅读 · 0 评论 -
Directions Reduction-方向减少
题目Directions Reduction方向减少描述Once upon a time, on a way through the old wild mountainous west,…… a man was given directions to go from one point to another. The directions were “NORTH”, “SOUTH”, “WEST”, “EAST”. Clearly “NORTH” and “SOUTH” are opposite,原创 2022-01-17 17:17:19 · 394 阅读 · 0 评论 -
RGB To Hex Conversion-RGB到十六进制的转换
我的个人博客更多内容,请跳转我的个人博客题目RGB To Hex ConversionRGB到十六进制的转换描述The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned. Valid decimal values for RGB are 0 - 255. Any values原创 2022-01-10 15:34:35 · 608 阅读 · 0 评论 -
Snail-蜗牛
我的个人博客更多内容,请跳转我的个人博客题目Snail蜗牛描述Snail SortGiven an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.蜗牛排序给定一个nxn数组,按顺时针方向返回从最外层元素排列到中间元素的数组元素。如下面这个例子:array = [[1,2,3], [4,5,6],原创 2022-01-06 17:05:06 · 371 阅读 · 0 评论 -
Simple Pig Latin - 简单的猪拉丁文
我的个人博客更多内容,请跳转我的个人博客题目Simple Pig Latin简单的猪拉丁文描述Move the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched.将每个单词的第一个字母移到它的末尾,然后在单词的末尾加上“ay”。保持标点符号不变。例子pig_it(‘Pig latin is cool’) # i原创 2021-12-29 11:47:02 · 508 阅读 · 0 评论 -
Replace With Alphabet Position-替换为字母表位置
我的个人博客更多内容,请跳转我的个人博客题目Replace With Alphabet Position替换为字母表位置描述Welcome.In this kata you are required to, given a string, replace every letter with its position in the alphabet.If anything in the text isn’t a letter, ignore it and don’t return it.欢迎原创 2021-12-24 16:38:15 · 412 阅读 · 0 评论 -
Stop gninnipS My sdroW-不要扭曲我的话语
我的个人博客更多内容,请跳转我的个人博客题目Stop gninnipS My sdroW!不要扭曲我的话语描述Write a function that takes in a string of one or more words, and returns the same string, but with all five or more letter words reversed (Just like the name of this Kata). Strings passed in wil原创 2021-12-22 15:22:58 · 807 阅读 · 0 评论 -
Take a Ten Minute Walk - 步行十分钟
我的个人博客更多内容,请跳转我的个人博客题目Take a Ten Minute Walk步行十分钟描述You live in the city of Cartesia where all roads are laid out in a perfect grid. You arrived ten minutes too early to an appointment, so you decided to take the opportunity to go for a short walk. Th原创 2021-12-16 09:48:22 · 480 阅读 · 0 评论 -
Convert string to camel case-将字符串转换为驼峰大小写
题目Convert string to camel case(将字符串转换为驼峰大小写)描述Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitalized (known as原创 2021-12-14 09:38:11 · 668 阅读 · 0 评论 -
Sum of Digits / Digital Root - 数字和/数字根
我的个人博客更多内容,请跳转我的个人博客题目Sum of Digits / Digital Root数字和/数字根描述Digital root is the recursive sum of all the digits in a number.数字根是一个数中所有数字的递归和。Given n, take the sum of the digits of n. If that value has more than one digit, continue reducing in原创 2021-12-13 14:03:22 · 626 阅读 · 3 评论 -
Product of consecutive Fib numbers-连续Fib数的乘积
我的个人博客更多内容,请跳转我的个人博客题目Product of consecutive Fib numbers连续Fib数的乘积描述The Fibonacci numbers are the numbers in the following integer sequence (Fn):斐波那契数是以下整数序列(Fn)中的数字:0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, …such as:比如F(n) = F原创 2021-12-10 11:54:28 · 683 阅读 · 0 评论