1、 #include <stdio.h> #include <time.h> // time_t数据类型,日历时间头文件 int main(void) { time_t current = time(NULL); // 利用time函数获取日历时间(返回1970之后的秒数,整型) struct t ...
分类:
编程语言 时间:
2021-06-08 23:04:50
阅读次数:
0
Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rules: Ra ...
分类:
其他好文 时间:
2021-06-08 22:53:14
阅读次数:
0
排序 分类 外排序:由于数据太大,因此把数据放在磁盘中,而排序通过磁盘和内存的数据传输才能进行(k路归并) 内排序:所有操作再内存就可以完成 比较类排序:通过比较来决定元素间的相对次序,由于其时间复杂度不能突破O(nlogn),因此也称为非线性时间比较类排序。 非比较类排序:不通过比较来决定元素间的 ...
分类:
编程语言 时间:
2021-06-08 22:35:45
阅读次数:
0
函数去抖(debounce):当调用函数n秒后,才会执行该动作,若在这n秒内又调用该函数则取消前一次并重新计算执行时间(频繁触发的情况下,只有足够的空闲时间,才执行代码一次) function debounce(delay, cb) { let timer return function () { ...
分类:
其他好文 时间:
2021-06-08 22:23:27
阅读次数:
0
输入年月日,判断这个日期是这一年的第几天。 方案一:不使用标准库中的模块和函数。 def is_leap_year(year): """判断指定的年份是不是闰年,平年返回False,闰年返回True""" return year % 4 == 0 and year % 100 != 0 or yea ...
分类:
编程语言 时间:
2021-06-07 21:16:16
阅读次数:
0
一、数据来源 CSV、yaml、xml、db、excel、json 二、本质 读取数据源返回数组,然后利用参数化进行数据与变量的对应 基于schema:List<Class> 纯数据:Array<Array<String,Object>> 三、数据格式 优点 缺点 Excel 生成数据方便 二进制文 ...
分类:
其他好文 时间:
2021-06-07 21:12:07
阅读次数:
0
toThousandFilter(num) { return (+num || 0).toFixed(2).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,') } ...
分类:
其他好文 时间:
2021-06-07 21:05:36
阅读次数:
0
封装类 public class HttpRequest { /** * 向指定URL发送GET方法的请求 * * @param url * 发送请求的URL * @param param * 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 * @return ...
分类:
编程语言 时间:
2021-06-07 21:04:17
阅读次数:
0
简介 简单题, 但是挺考验java数据结构的 code class Solution { public int[][] merge(int[][] intervals) { if (intervals.length == 0) { return new int[0][2]; } Arrays.sor ...
分类:
其他好文 时间:
2021-06-07 20:43:01
阅读次数:
0
IIS短文件名泄露漏洞检测 http://www.xxxx.com/*~1****/a.aspx http://www.xxxx.com/l1j1e*~1****/a.aspx If the first one return an HTTP 404 and the second one return ...
分类:
其他好文 时间:
2021-06-07 20:37:21
阅读次数:
0