<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[『诞生之时已至，以此修正万象』]]></title><description><![CDATA[『诀别之时已至，以此舍弃世界』]]></description><link>https://blog.csdn.net/ecysakura</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ecysakura]]></copyright><item><title><![CDATA[【Codewars】Bouncing Balls]]></title><link>https://blog.csdn.net/ecysakura/article/details/90722801</link><guid>https://blog.csdn.net/ecysakura/article/details/90722801</guid><author>ecysakura</author><pubDate>Fri, 31 May 2019 21:00:19 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


A child is playing with a ball on the nth floor of a tall building. The height of this floor,h, is known.

He drops the ball out of the window. The ball bounces (for ex...]]></description><category></category></item><item><title><![CDATA[【Codewars】Josephus Permutation]]></title><link>https://blog.csdn.net/ecysakura/article/details/90722455</link><guid>https://blog.csdn.net/ecysakura/article/details/90722455</guid><author>ecysakura</author><pubDate>Fri, 31 May 2019 20:32:48 +0800</pubDate><description><![CDATA[Codewars里的 5kyu Kata。

题目说明：


This problem takes its name by arguably the most important event in the life of the ancient historian Josephus: according to his tale, he and his 40 soldiers were trappe...]]></description><category></category></item><item><title><![CDATA[【Codewars】Dubstep]]></title><link>https://blog.csdn.net/ecysakura/article/details/90722248</link><guid>https://blog.csdn.net/ecysakura/article/details/90722248</guid><author>ecysakura</author><pubDate>Fri, 31 May 2019 20:14:06 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


Description:

Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of ol...]]></description><category></category></item><item><title><![CDATA[【Codewars】Pick peaks]]></title><link>https://blog.csdn.net/ecysakura/article/details/90707239</link><guid>https://blog.csdn.net/ecysakura/article/details/90707239</guid><author>ecysakura</author><pubDate>Thu, 30 May 2019 22:17:48 +0800</pubDate><description><![CDATA[Codewars里的 5kyu Kata。

题目说明：


In this kata, you will write a function that returns the positions and the values of the "peaks" (or local maxima) of a numeric array.

For example, the arrayarr = [0, ...]]></description><category></category></item><item><title><![CDATA[【Codewars】Is a number prime?]]></title><link>https://blog.csdn.net/ecysakura/article/details/90707211</link><guid>https://blog.csdn.net/ecysakura/article/details/90707211</guid><author>ecysakura</author><pubDate>Thu, 30 May 2019 22:12:35 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


Description:

Define a function that takes an integer argument and returns logical valuetrueorfalsedepending on if the integer is a prime.

Per Wikipedia, a prime nu...]]></description><category></category></item><item><title><![CDATA[【Codewars】Find The Parity Outlier]]></title><link>https://blog.csdn.net/ecysakura/article/details/90707121</link><guid>https://blog.csdn.net/ecysakura/article/details/90707121</guid><author>ecysakura</author><pubDate>Thu, 30 May 2019 22:02:21 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or e...]]></description><category></category></item><item><title><![CDATA[【Codewars】Simple Pig Latin]]></title><link>https://blog.csdn.net/ecysakura/article/details/90707009</link><guid>https://blog.csdn.net/ecysakura/article/details/90707009</guid><author>ecysakura</author><pubDate>Thu, 30 May 2019 21:55:40 +0800</pubDate><description><![CDATA[Codewars里的 5kyu Kata。

题目说明：


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.

Examples


pigIt('Pig latin is cool'); // ...]]></description><category></category></item><item><title><![CDATA[【Codewars】Data Reverse]]></title><link>https://blog.csdn.net/ecysakura/article/details/90606109</link><guid>https://blog.csdn.net/ecysakura/article/details/90606109</guid><author>ecysakura</author><pubDate>Mon, 27 May 2019 18:28:37 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


Description:

A stream of data is received and needs to be reversed.

Each segment is 8 bits long, meaning the order of these segments needs to be reversed, for example:...]]></description><category></category></item><item><title><![CDATA[【Codewars】Multi-tap Keypad Text Entry on an Old Mobile Phone]]></title><link>https://blog.csdn.net/ecysakura/article/details/90315066</link><guid>https://blog.csdn.net/ecysakura/article/details/90315066</guid><author>ecysakura</author><pubDate>Mon, 27 May 2019 16:02:19 +0800</pubDate><description><![CDATA[Codewars里的 6kyu Kata。

题目说明：


Description:

Prior to having fancy iPhones, teenagers would wear out their thumbs sending SMS messages on candybar-shaped feature phones with 3x4 numeric keypads.


---...]]></description><category></category></item><item><title><![CDATA[【Codewars】All Inclusive?]]></title><link>https://blog.csdn.net/ecysakura/article/details/90603835</link><guid>https://blog.csdn.net/ecysakura/article/details/90603835</guid><author>ecysakura</author><pubDate>Mon, 27 May 2019 15:23:25 +0800</pubDate><description><![CDATA[Codewars里的 7kyu Kata。

题目说明：


Description:

Input:

a stringstrng
	an array of stringsarr
Output of functioncontain_all_rots(strng, arr) (or containAllRots or contain-all-rots):

a booleantrueif...]]></description><category></category></item><item><title><![CDATA[【Codewars】Integers: Recreation One]]></title><link>https://blog.csdn.net/ecysakura/article/details/90603793</link><guid>https://blog.csdn.net/ecysakura/article/details/90603793</guid><author>ecysakura</author><pubDate>Mon, 27 May 2019 15:16:30 +0800</pubDate><description><![CDATA[Codewars里的 5kyu Kata。

题目说明：


Divisors of 42 are : 1, 2, 3, 6, 7, 14, 21, 42. These divisors squared are: 1, 4, 9, 36, 49, 196, 441, 1764. The sum of the squared divisors is 2500 which is 50 * 50, a ...]]></description><category></category></item><item><title><![CDATA[【Codewars】Maximum subarray sum]]></title><link>https://blog.csdn.net/ecysakura/article/details/90378315</link><guid>https://blog.csdn.net/ecysakura/article/details/90378315</guid><author>ecysakura</author><pubDate>Mon, 20 May 2019 17:11:13 +0800</pubDate><description><![CDATA[Codewars里的 5kyu Kata。

题目说明：


The maximum sum subarray problem consists in finding the maximum sum of a contiguous subsequence in an array or list of integers:


Max.sequence(new int[]{-2, 1, -3, 4, ...]]></description><category></category></item><item><title><![CDATA[【Codewars】Folding your way to the moon]]></title><link>https://blog.csdn.net/ecysakura/article/details/90377970</link><guid>https://blog.csdn.net/ecysakura/article/details/90377970</guid><author>ecysakura</author><pubDate>Mon, 20 May 2019 16:57:50 +0800</pubDate><description><![CDATA[Codewars里的 7kyu Kata。

题目说明：


Have you heard about the myth thatif you fold a paper enough times, you can reach the moon with it? Sure you do, but exactly how many? Maybe it's time to write a progra...]]></description><category></category></item><item><title><![CDATA[【LeetCode】Reverse Bits(颠倒二进制位)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90342728</link><guid>https://blog.csdn.net/ecysakura/article/details/90342728</guid><author>ecysakura</author><pubDate>Sun, 19 May 2019 19:54:01 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第190道题。

题目描述：


颠倒给定的 32 位无符号整数的二进制位。



示例 1：


输入: 00000010100101000001111010011100
输出: 00111001011110000010100101000000
解释: 输入的二进制串 00000010100101000001111010011100 表示无符号整数 43261596...]]></description><category></category></item><item><title><![CDATA[【LeetCode】House Robber II(打家劫舍 II)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90342420</link><guid>https://blog.csdn.net/ecysakura/article/details/90342420</guid><author>ecysakura</author><pubDate>Sun, 19 May 2019 14:58:10 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第213道题。

题目描述：


你是一个专业的小偷，计划偷窃沿街的房屋，每间房内都藏有一定的现金。这个地方所有的房屋都围成一圈，这意味着第一个房屋和最后一个房屋是紧挨着的。同时，相邻的房屋装有相互连通的防盗系统，如果两间相邻的房屋在同一晚上被小偷闯入，系统会自动报警。

给定一个代表每个房屋存放金额的非负整数数组，计算你在不触动警报装置的情况下，能够偷窃到的最高金额。...]]></description><category></category></item><item><title><![CDATA[【LeetCode】House Robber(打家劫舍)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90342303</link><guid>https://blog.csdn.net/ecysakura/article/details/90342303</guid><author>ecysakura</author><pubDate>Sun, 19 May 2019 14:35:59 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第198道题。

题目描述：


你是一个专业的小偷，计划偷窃沿街的房屋。每间房内都藏有一定的现金，影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统，如果两间相邻的房屋在同一晚上被小偷闯入，系统会自动报警。

给定一个代表每个房屋存放金额的非负整数数组，计算你在不触动警报装置的情况下，能够偷窃到的最高金额。

示例 1:


输入: [1,2,3,1]
输出...]]></description><category></category></item><item><title><![CDATA[【LeetCode】Factorial Trailing Zeroes(阶乘后的零)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90319532</link><guid>https://blog.csdn.net/ecysakura/article/details/90319532</guid><author>ecysakura</author><pubDate>Sat, 18 May 2019 19:55:50 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第172道题。

题目描述：


给定一个整数n，返回n! 结果尾数中零的数量。

示例 1:


输入: 3
输出: 0
解释:3! = 6, 尾数中没有零。

示例2:


输入: 5
输出: 1
解释:5! = 120, 尾数中有 1 个零.

说明:你算法的时间复杂度应为O(logn)。


0 来源于 2 * 5，因为在阶乘中，因子 2 肯定...]]></description><category></category></item><item><title><![CDATA[【LeetCode】Majority Element(求众数)]]></title><link>https://blog.csdn.net/ecysakura/article/details/89792538</link><guid>https://blog.csdn.net/ecysakura/article/details/89792538</guid><author>ecysakura</author><pubDate>Sat, 18 May 2019 19:44:05 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第169道题。

题目描述：


给定一个大小为n的数组，找到其中的众数。众数是指在数组中出现次数大于⌊ n/2 ⌋的元素。

你可以假设数组是非空的，并且给定的数组总是存在众数。

示例1:


输入: [3,2,3]
输出: 3

示例2:


输入: [2,2,1,1,1,2,2]
输出: 2


三种方法：

摩尔投票法
	排序后去中间数
	使用哈...]]></description><category></category></item><item><title><![CDATA[【LeetCode】Excel Sheet Column Title(Excel表列名称)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90318781</link><guid>https://blog.csdn.net/ecysakura/article/details/90318781</guid><author>ecysakura</author><pubDate>Sat, 18 May 2019 18:34:23 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第168道题。

题目描述：


给定一个正整数，返回它在 Excel 表中相对应的列名称。

例如，


    1 -&gt; A
    2 -&gt; B
    3 -&gt; C
    ...
    26 -&gt; Z
    27 -&gt; AA
    28 -&gt; AB 
    ...


示例 1:


输入: 1
输出: "A"


...]]></description><category></category></item><item><title><![CDATA[【LeetCode】Two Sum II - Input array is sorted(两数之和 II - 输入有序数组)]]></title><link>https://blog.csdn.net/ecysakura/article/details/90317518</link><guid>https://blog.csdn.net/ecysakura/article/details/90317518</guid><author>ecysakura</author><pubDate>Sat, 18 May 2019 17:14:15 +0800</pubDate><description><![CDATA[这道题是LeetCode里的第167道题。

题目描述：


给定一个已按照升序排列的有序数组，找到两个数使得它们相加之和等于目标数。

函数应该返回这两个下标值index1 和 index2，其中 index1必须小于index2。

说明:

返回的下标值（index1 和 index2）不是从零开始的。
	你可以假设每个输入只对应唯一的答案，而且你不可以重复使用相同的元素。
示例:
...]]></description><category></category></item></channel></rss>