package clientv3import ( "crypto/tls" "errors" "fmt" "net" "net/url" "strings" "time" "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" prometheu... ...
分类:
其他好文 时间:
2017-08-30 14:11:46
阅读次数:
185
package clientv3import ( "net/url" "strings" "sync" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes")// ErrNoAddrAvi... ...
分类:
其他好文 时间:
2017-08-30 14:10:22
阅读次数:
292
题目: anysubsequence of the other strings. A subsequence is a sequence that can be derived from one sequence by deleting some characters without changin ...
分类:
其他好文 时间:
2017-08-26 11:25:51
阅读次数:
173
Return all non-overlapping matches of pattern in string, as a list of strings. The string is scanned left-to-right, and matches are returned in the or ...
分类:
其他好文 时间:
2017-08-25 09:39:51
阅读次数:
487
题意:给定两个字符串,问你是不是匹配,这不是完全的正则表达式,而且题意有点模糊,'.'能匹配任意字符。'*'能匹配前面一个字符重复0-无数多次,如果是 . * 这样的是先匹配 .,再匹配*。 析:dp[i][j] 表示 第一个串匹配到 i 第二串匹配到 j,是不是能。 如果是a[i] == b[j] ...
分类:
其他好文 时间:
2017-08-24 21:37:20
阅读次数:
147
Cannot switch on a value of type long. Only convertible int values, strings or enum variables are permitted switch无法作用于long类型的值。 只允许可转换的int值,字符串或枚举变量 ...
分类:
其他好文 时间:
2017-08-24 21:32:20
阅读次数:
130
/* HDU 6170 - Two strings [ DP ] | 2017 ZJUT Multi-University Training 9 题意: 定义*可以匹配任意长度,.可以匹配任意字符,问两串是否匹配 分析: dp[i][j] 代表B[i] 到 A[j]全部匹配 然后根据三种匹配类型分类... ...
分类:
其他好文 时间:
2017-08-24 00:08:39
阅读次数:
268
Redis基础应用 redis是一个开源的可基于内存可持久化的日志型,key-value数据库redis的存储分为内存存储,磁盘存储和log文件三部分配置文件中有三个参数对其进行配置 优势:和memcached相比,它支持存储的value类型相对更多,包括strings,lists,zsets(so ...
分类:
系统相关 时间:
2017-08-23 20:50:49
阅读次数:
239
Given three strings, return true if third string is interleaving of first and second string. By running some examples, it seems that as long as s1.len ...
分类:
其他好文 时间:
2017-08-23 13:28:32
阅读次数:
173