摘要:
Description:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S=... 阅读全文
摘要:
Description:Write a function to find the longest common prefix string amongst an array of strings.(最长公共字串)Code:string merge(string&str1, string&str2) ... 阅读全文
摘要:
Description:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeatin... 阅读全文
摘要:
Description:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Code1:vector g... 阅读全文
摘要:
Description:Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n =... 阅读全文