一、迭代器 迭代器是一种类型替换,如 每个容器类都定义了迭代器, 迭代器是一种广义指针,用来为不同的容器提供统一的接口。 举个栗子: vector::iterator pr; 此时代表的是: vector::iterator pr; 此时代表的是: 而迭代器iterator用于泛指所有类型指针。 遍 ...
分类:
其他好文 时间:
2020-05-12 13:22:23
阅读次数:
45
本文始发于个人公众号: TechFlow ,原创不易,求个关注 今天是LeetCode专题第36篇文章,我们一起来看下LeetCode的62题,Unique Paths。 题意 其实这是一道老掉牙的题目了,我在高中信息竞赛的选拔考试上就见过这题。可想而知它有多古老,或者说多经典吧。一般来说能够流传几 ...
分类:
其他好文 时间:
2020-05-11 23:55:31
阅读次数:
107
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-05-11 23:31:41
阅读次数:
66
JS点击按钮打开新的标签页,工作中遇到需要点击按钮打开一个或多个,需要用到window.open() 工作中我们可能需要打开多个,看以下代码: var data = [{ "id": 1 }, { "id": 2 }, { "id": 2 }]; $.each(data, function (i,v ...
分类:
编程语言 时间:
2020-05-11 15:57:43
阅读次数:
72
Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each ...
分类:
其他好文 时间:
2020-05-11 15:09:42
阅读次数:
62
我们知道在 JavaScript 的 for 循环中,可以使用 continue 语句跳过本次循环,使用 break 语句跳出(结束)整个循环。而 jQuery 除了for 循环外,还有个 each() 方法也可以用来遍历元素,不过在该方法中不是通过 continue 或 break 来跳过循环,而 ...
分类:
其他好文 时间:
2020-05-11 13:36:48
阅读次数:
62
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making ...
分类:
其他好文 时间:
2020-05-10 23:17:57
阅读次数:
64
问题描述 重新编写函数squeeze(s1,s2),将字符串s1中任何与字符串s2中字符匹配的字符都删除。 Write an alternate version of squeeze(s1,s2) that deletes each character in the string s1 that m ...
分类:
编程语言 时间:
2020-05-10 17:03:44
阅读次数:
69
20175307 2020 5 《网络对抗技术》Exp7 网络欺诈防范 Week11 一、实践过程记录 1.简单应用SET工具建立冒名网站 Step1:使用 命令查看80端口是否被占用。如果有,使用 杀死该进程 Step2:由于要将钓鱼网站挂在本机的http服务下,所以需要将SET工具的访问端口改为 ...
分类:
其他好文 时间:
2020-05-10 14:31:19
阅读次数:
72
import java.util.ArrayList; import java.util.List; /** * 使用stream流的方式过滤和遍历集合 * @author wukefan * */ public class Test { public static void main(String ...
分类:
其他好文 时间:
2020-05-10 01:44:32
阅读次数:
260