Redis简介 Redis是一个开源免费的高性能键值数据库,通常被用作数据库、缓存、消息代理。 它支持数据结构,如strings,hashes,lists,sets,sorted。 在Linux下使用Redis 1、安装Redis 进入http://redis.io/download下载Redis, ...
分类:
其他好文 时间:
2019-02-16 18:19:26
阅读次数:
142
Algorithm 【leetcode】893. Groups of Special Equivalent Strings https://leetcode.com/problems/groups of special equivalent strings/ 1)problem You are gi ...
分类:
其他好文 时间:
2019-02-15 01:21:29
阅读次数:
219
14. Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return ...
分类:
其他好文 时间:
2019-02-14 22:28:40
阅读次数:
200
主要介绍strings包中的 strings.go/search.go/replace.go string.go中主要介绍Index函数,该函数寻找s中第一次出现substr的位置,返回position或-1: 基本代码如下: 可以看到在substr较短的情况下使用了暴力匹配,否则使用rabin-k ...
分类:
其他好文 时间:
2019-02-12 21:45:00
阅读次数:
155
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2019-02-12 21:25:30
阅读次数:
165
题目: 583. Delete Operation for Two Strings Medium 61517FavoriteShare 583. Delete Operation for Two Strings Medium 61517FavoriteShare Medium Given two w ...
分类:
其他好文 时间:
2019-02-12 12:52:24
阅读次数:
166
Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible, containing distinct letters, each taken ...
分类:
其他好文 时间:
2019-02-11 10:25:28
阅读次数:
210
Given an array equations of strings that represent relationships between variables, each string equations[i] has length 4 and takes one of two differe ...
分类:
其他好文 时间:
2019-02-10 20:31:42
阅读次数:
135
https://leetcode.com/problems/longest-uncommon-subsequence-i/ Given a group of two strings, you need to find the longest uncommon subsequence of this ...
分类:
其他好文 时间:
2019-02-09 19:22:08
阅读次数:
174
Given an array of strings, group anagrams together. Example: 题意 把由相同字母出现相同次数组成的字符串归到一起(数据可能重复) 题解 一开始我当成了任何一种字母只会出现一次做了,用的是long型作二进制用,自然WA了,其实后来可以用字符串 ...
分类:
其他好文 时间:
2019-02-07 20:43:17
阅读次数:
167