Redis简介 1. 支持5种数据结构 支持strings, hashes, lists, sets, sorted sets string是很好的存储方式,用来做计数存储。sets用于建立索引库非常棒; 2. K-V 存储 vs K-V 缓存 新浪微博目前使用的98%都是持久化...
分类:
其他好文 时间:
2015-06-01 17:01:54
阅读次数:
134
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:
编程语言 时间:
2015-06-01 14:43:30
阅读次数:
254
Longest Common Prefix
题目:
Write a function to find the longest common prefix string amongst an array of strings. 题意:
找出所有字符串的最长的公共前缀 思路:先找到最短的一个字符串,然后它的长度当作范围,接着判断所有字符串的同一个下标的字符,若全部相等则添加到返回字符...
分类:
其他好文 时间:
2015-05-31 14:06:39
阅读次数:
148
Problem Description
You are given two strings s1[0..l1], s2[0..l2] and Q - number of queries.
Your task is to answer next queries:
1) 1 a i c - you should set i-th character in a-th string to c...
分类:
其他好文 时间:
2015-05-31 12:30:58
阅读次数:
131
一、实现功能
废话不多说,直接上代码
strings.xml:
Hello World, Hello!
江苏省
山东省
浙江省
看一下布局文件main.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android...
分类:
移动开发 时间:
2015-05-30 15:20:01
阅读次数:
122
直接复制粘贴Android项目的修改项项目名称清单文件res > strings >values导包外部存储路径演变2.2之前:根目录下/sdcard2.2之后:mnt/sdcard4.2开始:storage/sdcard在原来的盘符路径留下快捷方式目的是为了兼容低版本应用路径api 在实际开发是需...
分类:
其他好文 时间:
2015-05-30 15:17:29
阅读次数:
132
leetcode新题,另外似乎是L家面经题Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett....
分类:
其他好文 时间:
2015-05-28 07:05:18
阅读次数:
115
G - Power Strings
Time Limit:3000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ 2406
Description
Given two strings a and b we define a*b to be their concatenati...
分类:
其他好文 时间:
2015-05-27 23:03:43
阅读次数:
255
Here is my collection of solutions to leetcode problems.LeetCode - Course ScheduleLeetCode - Reverse Linked ListLeetCode - Isomorphic StringsLeetCode ...
分类:
其他好文 时间:
2015-05-27 22:36:51
阅读次数:
175
class Solution {public: bool isIsomorphic(string s, string t) { mapxmap; if(s.size()!=t.size()){ return false; } ...
分类:
其他好文 时间:
2015-05-27 20:51:09
阅读次数:
91