C++
sjtubn
这个作者很懒,什么都没留下…
展开
-
[codewars][python][C++]Count the Digit
Take an integer n (n >= 0) and a digit d (0 <= d <= 9) as an integer. Square all numbers k (0 <= k <= n) between 0 and n. Count the numbers of digits d used in the writing of all the k*...原创 2019-02-21 10:50:56 · 326 阅读 · 0 评论 -
[codewars][python][C++]Mumbling
This time no story, no theory. The examples below show you how to write function accum: Examples: accum("abcd") -> "A-Bb-Ccc-Dddd" accum("RqaEzty") -> "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy" acc...原创 2019-02-22 12:48:03 · 357 阅读 · 0 评论 -
[codewars][C++]Sum of a sequence
Your task is to make function, which returns the sum of a sequence of integers. The sequence is defined by 3 non-negative values: begin, end, step. If begin value is greater than the end, function s...原创 2019-02-22 15:44:27 · 274 阅读 · 0 评论 -
[codewars][python][C++]Even numbers in an array
Given an array of digitals numbers, return a new array of length number containing the last even numbers from the original array (in the same order). The original array will be not empty and will cont...原创 2019-02-20 13:12:42 · 167 阅读 · 0 评论