转载自http://blog.nosqlfan.com/html/2942.html?ref=rediszt长生剑、孔雀翎、碧玉刀、多情环、离别钩、霸王枪、拳头是古龙笔下的七种武器,而本文打算将Redis的几种使用方式Strings、Hashs、Lists、Sets、Sorted Sets、Pub/...
分类:
其他好文 时间:
2015-09-15 19:46:11
阅读次数:
134
Giventwonumbersrepresentedasstrings,returnmultiplicationofthenumbersasastring.Note:Thenumberscanbearbitrarilylargeandarenon-negative.stringmultiply(stringnum1,stringnum2){intlena=num1.length(),lenb=num2.length();if(lena==0||lenb==0)return"";if(num1=="1")ret..
分类:
其他好文 时间:
2015-09-15 14:57:18
阅读次数:
125
Strings are a fundamental part of any modern programming language, every bit as important as numbers. So you'd think that Java programmers would go ou...
分类:
其他好文 时间:
2015-09-15 12:39:36
阅读次数:
208
Question:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Analysis:思路一:首先将二进制字符串转化成十进制,然后十进制相加,最...
分类:
其他好文 时间:
2015-09-14 22:47:03
阅读次数:
248
需求:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:
其他好文 时间:
2015-09-14 22:27:06
阅读次数:
156
2-5 Loops and Numbers a) i = 0 while i 0: print 'positive' else: print 'zero'2-7 Loops and strings s = raw_input('enter a string:') for ...
分类:
编程语言 时间:
2015-09-14 20:54:15
阅读次数:
198
QuestionGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrenc...
分类:
其他好文 时间:
2015-09-14 07:10:04
阅读次数:
127
Problem:Given a strings, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could ...
分类:
其他好文 时间:
2015-09-14 06:58:58
阅读次数:
198
Power StringsPOJ - 2406时限:3000MS内存:65536KB64位IO格式:%I64d & %I64u提交状态已开启划词翻译问题描述Given two strings a and b we define a*b to be their concatenation. For e...
分类:
其他好文 时间:
2015-09-12 13:35:30
阅读次数:
137
题目描述:compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 You may assume that the version strings are non-empty and contain only digits and the . character.Th...
分类:
其他好文 时间:
2015-09-12 12:18:12
阅读次数:
162