C++ 1 class Solution { 2 public: 3 /** 4 * param n: As description. 5 * return: A list of strings. 6 */ 7 vector fizzBuzz(int n...
分类:
其他好文 时间:
2015-12-01 12:35:16
阅读次数:
133
省事用了一个hashmap,时间复杂度是o(n2)。要是用两个hashmap时间复杂度会变为o(n)public class Solution { public boolean isIsomorphic(String s, String t) { if (s.length() !...
分类:
其他好文 时间:
2015-11-30 13:03:40
阅读次数:
97
StringsobitsKim SchrijversConsider an ordered set S of strings of N (1 #include #include #include #include #include #include #include #include #includ...
分类:
其他好文 时间:
2015-11-30 00:49:33
阅读次数:
252
public class Solution { public List> groupStrings(String[] strings) { HashMap> map = new HashMap>(); for (String str :strings) { ...
分类:
其他好文 时间:
2015-11-29 12:07:06
阅读次数:
168
https://leetcode.com/problems/palindrome-partitioning/Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all...
分类:
其他好文 时间:
2015-11-28 18:12:33
阅读次数:
187
Power StringsTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 39291Accepted: 16315DescriptionGiven two s...
分类:
其他好文 时间:
2015-11-28 18:11:01
阅读次数:
180
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2015-11-28 01:06:06
阅读次数:
197
C++ 1 class Solution { 2 public: 3 /** 4 * @param dictionary: a vector of strings 5 * @return: a vector of strings 6 */ 7 vecto...
分类:
其他好文 时间:
2015-11-27 06:40:42
阅读次数:
174
C. Marina and VasyaMarina loves strings of the same length and Vasya loves when there is a third string, different from them in exactly t characters. ...
分类:
其他好文 时间:
2015-11-27 00:41:56
阅读次数:
236
strFileName := FcxLV[nIndex].Items.Item[FcxLV[nIndex].ItemIndex].SubItems.Strings[0]; //路径 ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + ....