摘要: Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexi 阅读全文
posted @ 2017-02-16 17:09 糯米米一粒 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" 本题简单来说 就是字符串的处理 阅读全文
posted @ 2017-02-16 16:35 糯米米一粒 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Find All Anagrams in a String 找变位子串: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of l 阅读全文
posted @ 2017-02-16 16:34 糯米米一粒 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" 本题简单来说 就是字符串的处理 阅读全文
posted @ 2017-02-16 16:30 糯米米一粒 阅读(114) 评论(0) 推荐(0) 编辑