码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果)
LintCode: Fizz Buzz
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
[LeetCode]Isomorphic Strings
省事用了一个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
kimbits_USACO
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
[LeetCode]Group Shifted Strings
public class Solution { public List> groupStrings(String[] strings) { HashMap> map = new HashMap>(); for (String str :strings) { ...
分类:其他好文   时间:2015-11-29 12:07:06    阅读次数:168
leetcode@ [131/132] Palindrome Partitioning & Palindrome Partitioning II
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
poj2406 Power Strings(kmp失配函数)
Power StringsTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 39291Accepted: 16315DescriptionGiven two s...
分类:其他好文   时间:2015-11-28 18:11:01    阅读次数:180
Multiply Strings
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
LintCode: Longest Words
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
codeforces 584C Marina and Vasya
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
delphi 打开文件夹并定位到一个文件(使用ShellExecute时加一个select参数,原来这么简单!)
strFileName := FcxLV[nIndex].Items.Item[FcxLV[nIndex].ItemIndex].SubItems.Strings[0]; //路径 ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + ....
分类:Windows程序   时间:2015-11-26 23:20:47    阅读次数:633
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!