ZigZag显示字符串 Golang 收获 1. []string 格式可以通过strings.Join([]string, "")转换成str格式 2. 开始的时候想到的是数组的解决办法, 随后想到可以用map的方式+string的方式进行追加; 3. numRows作为输入,需要转换理解为N R ...
分类:
其他好文 时间:
2018-11-05 22:23:37
阅读次数:
116
Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subs ...
分类:
其他好文 时间:
2018-11-05 21:29:47
阅读次数:
207
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2018-11-05 21:28:13
阅读次数:
142
https://leetcode.com/problems/longest-common-prefix/description/ Write a function to find the longest common prefix string amongst an array of strings ...
分类:
其他好文 时间:
2018-11-02 23:36:38
阅读次数:
103
E - Three strings 将三个串加进去,看每个节点在三个串中分别出现了多少次。 ...
分类:
数据库 时间:
2018-11-02 20:28:27
阅读次数:
186
Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: In ...
分类:
其他好文 时间:
2018-11-01 14:09:30
阅读次数:
145
一、redis简介 Redis是一款开源的、高性能的键-值存储。它常被称作是一款数据结构服务器。 当值支持的主要数据类型为:字符串(strings)类型,括哈希(hashes)、列表(lists)、集合(sets)和 有序集合(sorted sets)等数据类型。 同时Redis可以进行持久化(将数 ...
分类:
其他好文 时间:
2018-10-31 20:15:52
阅读次数:
198
You are given an array A of strings. Two strings S and T are special equivalent if after any number of moves, S == T. A move consists of choosing two ...
分类:
其他好文 时间:
2018-10-29 14:13:28
阅读次数:
183
package main import ( "fmt" "strings" ) func numUniqueEmails(emails []string) int { var dic map[string]int dic = make(map[string]int) for _, s := rang... ...
分类:
其他好文 时间:
2018-10-28 22:00:32
阅读次数:
157
A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, th ...
分类:
其他好文 时间:
2018-10-28 00:47:45
阅读次数:
159