码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果
Problem Palindrome Partitioning
Problem Description:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ...
分类:其他好文   时间:2014-07-07 16:02:55    阅读次数:259
Leetcode 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...
分类:其他好文   时间:2014-07-07 14:58:47    阅读次数:175
js的prototype扩展的一个例子,模仿C#的StringBuilder功能,数组组合字符串,效率大于+拼凑
function StringBuilder() { this._strings_ = new Array;}StringBuilder.prototype.append = function (str) { this._strings_.push(str);};StringBuilde...
分类:Web程序   时间:2014-07-07 00:46:42    阅读次数:248
Leetcode Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.class Solution {public: string longestCommonPrefix(vector &st...
分类:其他好文   时间:2014-07-05 18:36:22    阅读次数:209
[LeetCode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 1 class Solution 2 { 3 public: 4 ...
分类:其他好文   时间:2014-07-03 11:23:54    阅读次数:164
PowerManager使用实例1(下)
文件2layout\main.xml: 文件3values\strings.xml: Hello World, MainActivity! PowerMangerSample acquire PARTIAL_WAKE_LOCK release PARTIAL_WAKE_LOCK ...
分类:其他好文   时间:2014-07-03 10:52:43    阅读次数:135
Effective Item 3 - 避免不必要的对象
通常,我们更喜欢重用一个对象而不是重新创建一个。如果对象是不可变的,它就始终可以被重用。下面是一个反面例子,JoshuaBloch明确指出[DON‘TTOTHIS]:Strings=newString("stringette");该语句每次执行时都创建一个新的实例。String构造器中的参数"stringette"本身是一个实例..
分类:其他好文   时间:2014-07-02 15:33:43    阅读次数:231
每日算法之三十八:Anagrams
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 回文字符串是指: 两个字符串的字符个数完全相同,这两个字符串是Anagrams。因此Anagrams至少指俩字符串。找出字符集合中的Anagrams组。...
分类:其他好文   时间:2014-07-01 08:42:11    阅读次数:250
Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-06-30 22:43:45    阅读次数:294
leetcode--Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-06-29 20:28:58    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!