给定两个字符串,判断其是否是同构的。何为同构,即字符串中每个字符都是单一映射的。Input: s = "egg", t = "add"Output: true Input: s = "foo", t = "bar"Output: false 思路:设置两个哈希字典,一个保存s到t的映射,另一个保存t ...
分类:
其他好文 时间:
2020-05-11 18:33:09
阅读次数:
46
Given two strings S?1?? and S?2??, S=S?1???S?2?? is defined to be the remaining string after taking all the characters in S?2?? from S?1??. Your task ...
分类:
其他好文 时间:
2020-05-08 17:52:00
阅读次数:
67
manifest目录 AndroidManifest.xml java目录 com.example.xxx xxxx.java:活动文件 res目录 drawable:存放图片 layout:存放布局文件 mipmap:存放图标 values:存放字符串、样式、颜色 strings.xml:存放字符 ...
分类:
移动开发 时间:
2020-05-06 20:10:15
阅读次数:
119
先po一个基准测试结果 package main import ( "bytes" "fmt" "strings" "testing" ) const v = "Measure the elapsed time between sending a data octet with a?" func B ...
分类:
其他好文 时间:
2020-05-06 12:15:19
阅读次数:
59
Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minut ...
分类:
其他好文 时间:
2020-05-05 17:45:22
阅读次数:
75
函数 易错点总结 可更改(mutable)与不可更改(immutable)对象 在 python 中,strings, tuples, 和 numbers 是不可更改的对象,而 list,dict 等则是可以修改的对象。 不可变类型 :变量赋值 a=5 后再赋值 a=10 ,这里实际是==新生成一个 ...
分类:
其他好文 时间:
2020-05-05 17:44:50
阅读次数:
94
"题目来源" Given two strings S 1 and S 2, S = S 1? S 2 is defined to be the remaining string after taking all the characters in S 2 from S 1. Your task is ...
分类:
编程语言 时间:
2020-05-05 01:06:54
阅读次数:
91
题目描述 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 co ...
分类:
其他好文 时间:
2020-05-03 18:40:49
阅读次数:
162
一、数据类型 如果学过数据结构就会知道,操作往往是在特定的数据结构上的,不同的数据结构就会有不同的操作,Redis支持以下的数据类型: 字符串(Strings),列表(Lists),集合(Sets),哈希表(Hashes),有序集合(Sorted Sets),Bitmaps和HyperLogLogs ...
分类:
其他好文 时间:
2020-05-03 16:53:38
阅读次数:
44
简介 ? Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 "字符串(strings)" , "散列(hashes)" , "列表(lists)" , "集合(sets)" , "有序集合(sorted sets)" ...
分类:
其他好文 时间:
2020-05-02 14:54:29
阅读次数:
57