tcpdump想要捕获发送给imap服务器的数据 , 可以使用下面的参数 , 默认端口是143 tcpdump -i any dst port 143 -l -s 0 -w -|strings dst port 是目标端口 , 只获取发送的数据 , 不获取返回的数据 -l 是监听模式 -s 0 不限 ...
分类:
系统相关 时间:
2020-04-14 20:13:39
阅读次数:
159
题目描述 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。 示例: 题目链接: https://leetcode cn.com/problems/multiply strings/ 做这题之前可以先做一下 "字符串相加" ...
分类:
其他好文 时间:
2020-04-12 22:37:54
阅读次数:
66
1. class Solution { public: string multiply(string num1, string num2) { string str; int len1=num1.size(),len2=num2.size(); for(int i=len1-1;i>=0;--i) ...
分类:
其他好文 时间:
2020-04-12 22:31:55
阅读次数:
59
LeetCode 1408. String Matching in an Array数组中的字符串匹配【Easy】【Python】【字符串】 Problem "LeetCode" Given an array of string . Return all strings in which is su ...
分类:
编程语言 时间:
2020-04-12 22:29:46
阅读次数:
94
1408. String Matching in an Array Given an array of string words. Return all strings in words which is substring of another word in any order. String ...
分类:
其他好文 时间:
2020-04-12 18:45:33
阅读次数:
75
链接: 题意:给你两个字符串,可以对任意长度为len(每次操作需要在每个字符串都选择出长度为len的一个区间)的字符串进行翻转操作,问两个字符串能否变成一样的; 首先对一个区间进行翻转,可以看作是两个相邻的字母进行交换,一直交换,直到翻转成功,比如; abcde -> abced -> abecd ...
分类:
其他好文 时间:
2020-04-12 07:52:04
阅读次数:
65
Problem : Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1. The length of both num1 and n ...
分类:
其他好文 时间:
2020-04-11 23:42:02
阅读次数:
75
目录: Python格式化字符串的4中方式 一:%号 二:str.format 三:f-Strings 四:标准库模板 五:总结四种方式的应用场景 Python格式化字符串的4种方式 一:%号 ? %号格式化字符串的方式从Python诞生之初就已经存在,时至今日,python官方也并未弃用%号,但也 ...
分类:
其他好文 时间:
2020-04-11 18:54:02
阅读次数:
159
试题地址:https://leetcode-cn.com/problems/reverse-words-in-a-string/ 试题思路: go自带strings.Fields()函数,可以剔除多余空格 试题代码: func reverseWords(s string) string { strL ...
分类:
其他好文 时间:
2020-04-10 14:45:08
阅读次数:
72
"传送门" 也是广义 SAM 的板子题,建好广义 SAM,统计 $epA,epB,epC$,然后对于区间 $ans[len[fa[x]]+1],...,ans[len[x]]$ 加上 $epA\times epB\times epC$ 就行了,当然这个用差分实现简单快捷。 到这里,我后缀自动机的刷题 ...
分类:
其他好文 时间:
2020-04-10 09:12:31
阅读次数:
58