集合的体系结构:集合类提供一种存储空间可变的存储类型,存储的数据容量可随时发生改变。 Collection集合的概述: 1.是单例集合的顶层接口,它表示一组对象,这些对象也被成为Collection的元素; 2.JDK不提供该接口的任何直接实现,它提供了更具体的子接口(如set和list)实现。 C ...
分类:
编程语言 时间:
2021-04-12 12:29:40
阅读次数:
0
DOM是树结构 property: 修改对象属性,不会体现到html中(通过style改变节点的样式,不会加入html行内样式) attribute: 修改html属性,会改变html结构(setattribute,getattribute) 两者都有可能会引起DOM重新渲染 DOM操作非常昂贵,很 ...
分类:
其他好文 时间:
2021-04-12 12:02:04
阅读次数:
0
/** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ func rotateRight(head *ListNode, k int) *ListNode ...
分类:
其他好文 时间:
2021-04-12 11:49:58
阅读次数:
0
什么是List集合: 特点: 元素有序可重复的集合。 集合中每个元素都有其对应的顺序索引。 List集合默认按元素的添加顺序设置元素的索引,索引从0开始。 List接口的常用方法: List可以使用Collection的所有方法。但是List也有自己的一些方法。 void add(int index ...
分类:
编程语言 时间:
2021-04-12 11:43:59
阅读次数:
0
丑数 把只包含质因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含质因子7。 习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。 方法1:最小堆,基于sort.IntSlice实现heap 方法2:动态规划 func nthUglyNumb ...
分类:
其他好文 时间:
2021-04-12 11:41:41
阅读次数:
0
source program: list=[]while True: print("how many number input:") try: num=int(input()) for i in range(num): a=int(input("input"+str((i+1))+"integer: ...
分类:
编程语言 时间:
2021-04-12 11:41:22
阅读次数:
0
#include<iostream> #include<algorithm>//sort头文件 using namespace std; struct student{ int theta;//阈值 int result;//结果 }; bool compare(student a,student ...
分类:
编程语言 时间:
2021-04-12 11:39:49
阅读次数:
0
哈喽大家好,上次我们说了一圈TCP的发送和接受,其实不太准确,上次说的是TCP的客户端的收发。这次我们说一说服务器端的收发。 业务场景是这样 首先服务器开启监听,客户端在开启后去和服务器端连接,给服务器端一个“信号”,然后服务器端吧内容返回给客户端。 接下来,看代码。 using (Socket s ...
HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten ...
分类:
Web程序 时间:
2021-04-10 13:29:37
阅读次数:
0
原文链接:https://www.cnblogs.com/lizhenghao126/p/11053598.html 函数声明 template< class RandomIt, class Compare > constexpr void sort( RandomIt first, RandomI ...
分类:
编程语言 时间:
2021-04-10 13:28:28
阅读次数:
0