Problem : A matrix is Toeplitz if every diagonal from top left to bottom right has the same element. Now given an M x N matrix, return True if and onl ...
分类:
其他好文 时间:
2020-04-20 12:00:41
阅读次数:
54
linux下最简单好用的的端口转发工具官网地址http://www.rinetd.com/软件下载wgethttp://www.rinetd.com/download/rinetd.tar.gz解压安装tarzxvfrinetd.tar.gzmakemakeinstall编辑配置vi/etc/rinetd.conf0.0.0.08080172.19.94.380800.0.0.02222192.1
分类:
系统相关 时间:
2020-04-20 10:27:31
阅读次数:
76
"题目地址" 下载后发现题目的附件是一个 32 位可执行文件 level,以及一个 32 位的 libc 运行库 接下来使用 checksec 来查看 elf 文件开启了哪些保护,可得到如下内容: 执行一下来看效果,发现其基本流程如下 放到 ida 里反汇编得到如下结果 发现可以函数 vulnera ...
分类:
其他好文 时间:
2020-04-20 01:34:11
阅读次数:
134
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with ...
分类:
其他好文 时间:
2020-04-20 01:33:53
阅读次数:
85
策略模式 ThreadPoolExecutor的RejectedExecutionHandler,实现不同的拒绝策略。 装饰者模式 BufferedInputStream对InputStream扩展buffer功能。 工厂模式 Executors作为工厂,提供各种ExecutorService。 命 ...
分类:
其他好文 时间:
2020-04-19 15:02:27
阅读次数:
67
分析乒乓球比赛所设计出的代码: from random import random def printIntro(): print("这个程序模拟两个选手A和B的某种比赛") print("程序运行需要A和B的能力值(0到1之间)") def getInputs(): a=eval(input("请 ...
分类:
其他好文 时间:
2020-04-19 14:47:56
阅读次数:
55
双数有序找单值 public int singleNonDuplicate(int[] nums) { int l = 0, h = nums.length - 1; while (l < h) { int m = l + (h - l) / 2; if (m % 2 == 1) { m--; // ...
分类:
其他好文 时间:
2020-04-19 14:31:29
阅读次数:
65
删除mongodb apt-get purge --auto-remove mongodb 阿里云防火墙设置开启80端口:其他端口修改端口号就可以 iptables -I INPUT -p tcp --dport 80 -j ACCEPT firewall-cmd --zone=public --a ...
分类:
数据库 时间:
2020-04-19 12:34:57
阅读次数:
106
[root@Private python script] cat square.py ...
分类:
编程语言 时间:
2020-04-19 12:32:24
阅读次数:
65
Problem : A self dividing number is a number that is divisible by every digit it contains. For example, 128 is a self dividing number because 128 % 1 ...
分类:
其他好文 时间:
2020-04-19 09:12:52
阅读次数:
59