2014年10月3日

strstr

摘要: N(n*m)的时间复杂度public class Solution {public String strStr(String haystack, String needle) { int nLen = needle.length(); int hLen = haystack.lengt... 阅读全文

posted @ 2014-10-03 16:20 brave_bo 阅读(191) 评论(0) 推荐(0)

valid bank money number

摘要: 一直对这种题比较没把握. 没有思路.i1,000,000.2234,333.999define valid(String s,boolean last,boolean first)1.先s.trim();if string==null or string.length==0 return false... 阅读全文

posted @ 2014-10-03 07:34 brave_bo 阅读(204) 评论(0) 推荐(0)

导航