查询端口号80 是否开启:firewall cmd query port=80/tcp 永久开放80端口号:firewall cmd permanent zone=public add port=80/tcp 移除80端口号:firewall cmd permanent zone=public re ...
分类:
其他好文 时间:
2018-10-01 13:42:03
阅读次数:
752
同样的,我们以一道题来引入。 传送门 这次的任务比较少,只要求进行区间反转。区间反转? 这个好像用啥都是O(n)的吧……(这次vector,set也救不了你了) 我们来使用splay解决这个问题。我们既然要反转一段区间,那我们肯定要把这个区间弄到一个地方。我们想一下上次所讲的删除操作,我们把要删除的 ...
分类:
其他好文 时间:
2018-10-01 12:28:05
阅读次数:
168
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t ...
分类:
其他好文 时间:
2018-10-01 11:52:01
阅读次数:
141
``` !/bin/bash currentTime=$(date +"%Y %m %d_%H:%M:%S") echo "blacklist i2c_piix4" /etc/modprobe.d/blacklist.conf echo "blacklist pcspkr" /etc/modprob ...
分类:
其他好文 时间:
2018-10-01 01:03:12
阅读次数:
442
描述: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime ...
分类:
其他好文 时间:
2018-09-29 23:57:16
阅读次数:
401
Pandas包对多个数据表(DataFrame)的常用整合功能。 目录 merge join concat append combin_first merge 合并 pandas.merge可根据一个或多个键将不同DataFrame中的行合并起来 # 在未指定连接键的情况下,merge会将重叠列的列 ...
分类:
其他好文 时间:
2018-09-29 17:43:01
阅读次数:
282
What is Promise? Promise是一个构造函数,接受一个参数(Function),并且该参数接受两个参数resolve和reject(分别表示异步操作执行成功后的回调函数、执行失败后的回调函数) 运行代码,2秒后输出“执行完成”。注意,这里只是new了一个对象,并没有调用它,所以我们 ...
分类:
其他好文 时间:
2018-09-29 14:42:57
阅读次数:
166
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 1. DP Set an array, first ...
分类:
其他好文 时间:
2018-09-29 01:19:26
阅读次数:
223
// 输入一个包含多个double元素的数组,先打印结果,然后反转出头和尾元素之外的所有元素,最后再打印结果 #include using namespace std; int fill_array(double arr[], int size); void show_array(double ar... ...
分类:
编程语言 时间:
2018-09-28 23:01:16
阅读次数:
202
jQuery静态方法 什么是静态方法? 静态方法对应的是对象方法,对象方法用实例对象调用,而静态方法用类名调用. ready()事件的暂停和恢复 >>暂停或者恢复jQuery.ready()事件 >>传入true或false 数组和对象操作 each(object[,callback]) 遍历对象或 ...
分类:
Web程序 时间:
2018-09-28 22:05:47
阅读次数:
173