<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[石楠花的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ww5210946</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ww5210946]]></copyright><item><title><![CDATA[JAVA 1.8 新特性学习（2） lambda表达式]]></title><link>https://blog.csdn.net/ww5210946/article/details/51168080</link><guid>https://blog.csdn.net/ww5210946/article/details/51168080</guid><author>ww5210946</author><pubDate>Sat, 16 Apr 2016 14:47:46 +0800</pubDate><description><![CDATA[public class NameExample {

    public static void main(String[] args) {
        Names nameIns]]></description><category></category></item><item><title><![CDATA[JAVA 1.8 新特性学习（1） 接口的默认方法]]></title><link>https://blog.csdn.net/ww5210946/article/details/51167694</link><guid>https://blog.csdn.net/ww5210946/article/details/51167694</guid><author>ww5210946</author><pubDate>Sat, 16 Apr 2016 13:37:09 +0800</pubDate><description><![CDATA[java 1.8中，现在接口也可以定义实现了的方法了。用default定义方法就可以了。具体的例子可以看下面的代码：
public class Test {
    public static void main(String[] args) {
        Animal bird = new Bird();
        bird.breathe();
        bird.move]]></description><category></category></item><item><title><![CDATA[LeetCode Best Time to Buy and Sell Stock JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51142986</link><guid>https://blog.csdn.net/ww5210946/article/details/51142986</guid><author>ww5210946</author><pubDate>Wed, 13 Apr 2016 14:20:16 +0800</pubDate><description><![CDATA[Say you have an array for which the ith element is the price of a given stock on day i.

If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),]]></description><category></category></item><item><title><![CDATA[LeetCode Power of Three JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51141647</link><guid>https://blog.csdn.net/ww5210946/article/details/51141647</guid><author>ww5210946</author><pubDate>Wed, 13 Apr 2016 11:22:31 +0800</pubDate><description><![CDATA[Given an integer, write a function to determine if it is a power of three.
public class Solution {
    public boolean isPowerOfThree(int n) {
        while (n >= 3){
            if(n%3 == 0){
       ]]></description><category></category></item><item><title><![CDATA[LeetCode Power of Two JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51136938</link><guid>https://blog.csdn.net/ww5210946/article/details/51136938</guid><author>ww5210946</author><pubDate>Tue, 12 Apr 2016 20:42:35 +0800</pubDate><description><![CDATA[Given an integer, write a function to determine if it is a power of two.
public class Solution {
    public boolean isPowerOfTwo(int n) {
        int sum = 0;
        if(n <= 0){
            return f]]></description><category></category></item><item><title><![CDATA[LeetCode Ugly Number JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51123318</link><guid>https://blog.csdn.net/ww5210946/article/details/51123318</guid><author>ww5210946</author><pubDate>Mon, 11 Apr 2016 17:13:39 +0800</pubDate><description><![CDATA[Write a program to check whether a given number is an ugly number.

Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
 For example, 6, 8 are ugly while 14 is
 not ugly si]]></description><category></category></item><item><title><![CDATA[LeetCode Climbing Stairs JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51122508</link><guid>https://blog.csdn.net/ww5210946/article/details/51122508</guid><author>ww5210946</author><pubDate>Mon, 11 Apr 2016 16:03:27 +0800</pubDate><description><![CDATA[You are climbing a stair case. It takes n steps to reach to the top.

Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?

简单分析一下，如果我第一步走了一步，那么剩下来就是f（n]]></description><category></category></item><item><title><![CDATA[LeetCode Number of 1 Bits JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51105924</link><guid>https://blog.csdn.net/ww5210946/article/details/51105924</guid><author>ww5210946</author><pubDate>Sat, 09 Apr 2016 16:36:11 +0800</pubDate><description><![CDATA[Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming
 weight).

For example, the 32-bit integer ’11' has binary representation 000000]]></description><category></category></item><item><title><![CDATA[LeetCode Contains Duplicate JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51105059</link><guid>https://blog.csdn.net/ww5210946/article/details/51105059</guid><author>ww5210946</author><pubDate>Sat, 09 Apr 2016 14:37:25 +0800</pubDate><description><![CDATA[Given an array of integers, find if the array contains any duplicates. Your function should
 return true if any value appears at least twice in the array, and it should return false if every element ]]></description><category></category></item><item><title><![CDATA[LeetCode Valid Anagram JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51104905</link><guid>https://blog.csdn.net/ww5210946/article/details/51104905</guid><author>ww5210946</author><pubDate>Sat, 09 Apr 2016 14:10:35 +0800</pubDate><description><![CDATA[Given two strings s and t, write a function to determine if t is an anagram of s.

For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.

Note:

You may a]]></description><category></category></item><item><title><![CDATA[LeetCode Majority Element JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51104860</link><guid>https://blog.csdn.net/ww5210946/article/details/51104860</guid><author>ww5210946</author><pubDate>Sat, 09 Apr 2016 14:03:05 +0800</pubDate><description><![CDATA[Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊
 n/2 ⌋ times.

You may assume that the array is non-empty and the majority element]]></description><category></category></item><item><title><![CDATA[LeetCode Excel Sheet Column Number JAVA]]></title><link>https://blog.csdn.net/ww5210946/article/details/51103995</link><guid>https://blog.csdn.net/ww5210946/article/details/51103995</guid><author>ww5210946</author><pubDate>Sat, 09 Apr 2016 11:15:08 +0800</pubDate><description><![CDATA[写的比较挫，先是判断一下，如果是String只有一个单词的话，就比较简单，直接返回这个单词对应的值就行了。如果有多个单词的话，就先把第一个到倒数第二个的所有和都加起来，再加上最后一位的值就OK了。
public class Solution {
    public int titleToNumber(String s) {
        int sum = 0;
        char[]]]></description><category></category></item></channel></rss>