
String
pengweixuan008
这个作者很懒,什么都没留下…
展开
-
58.Length of Last Word (最后一个单词长度)
描述:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word原创 2015-07-28 14:11:15 · 452 阅读 · 0 评论 -
连续子数组的最大和
public Integer findGreatestSum(int[] arr){ if(arr.length ==0) return null; int greatest = 0x80000000; int curSum = 0; for(int i转载 2015-08-09 17:01:22 · 280 阅读 · 0 评论 -
168.Excel Sheet Column Title(28 -> AB)
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 代码:publ原创 2015-07-29 14:02:22 · 235 阅读 · 0 评论