git安装 1. 检查apt包是否最新 $sudo apt-get update -y 2. 安装git $sudo apt install git Reading package lists... Done Building dependency tree Reading state inform ...
分类:
Web程序 时间:
2020-07-12 01:09:19
阅读次数:
96
# 1.看代码分析结果 # func_list = [] # for i in range(10): # func_list.append(lambda: i) # v1 = func_list[0]() # v2 = func_list[5]() # print(v1, v2) # result: ...
分类:
其他好文 时间:
2020-07-11 23:14:46
阅读次数:
96
问题描述 给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。 例如:给定二叉树 [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7返回锯齿形层次遍历如下: [ [3], [20,9], [15 ...
分类:
其他好文 时间:
2020-07-11 21:22:39
阅读次数:
47
HTML: <ul class="tree" id="tree"> <li>Animals <ul> <li>Mammals <ul> <li>Cows</li> <li>Donkeys</li> <li>Dogs</li> <li>Tigers</li> </ul> </li> <li>Other ...
分类:
其他好文 时间:
2020-07-11 21:19:43
阅读次数:
70
1135 Is It A Red-Black Tree (30分) There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 pr ...
分类:
其他好文 时间:
2020-07-11 19:21:02
阅读次数:
74
动态代理基于什么原理?谈谈java反射机制。 代理模式是一种常用的设计模式,其目的就是为其他对象提供一个代理以控制对某个真实对象的访问。代理类负责为委托类预处理消息,过滤消息并转发消息,以及进行消息被委托类执行后的后续处理。 反射机制是java 语言提供的一种基础功能,赋予程序在运行时自省的能力。通 ...
分类:
编程语言 时间:
2020-07-11 12:53:57
阅读次数:
65
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:
其他好文 时间:
2020-07-11 10:04:24
阅读次数:
84
讲过STP的原理之后,我们就要说一下实际的工作环境, 在实际工作中,很少有人会使用STP这样的公有标准(所有vlan共用一棵树)因为这有些不够灵活, Cisco 私有协议 PVST\PVST+ 横空出世, PVST ,针对每个VLAN,一棵树的原理进行设计,更加的灵活 PVST+,升级版,比PVST ...
分类:
其他好文 时间:
2020-07-11 09:54:05
阅读次数:
56
Flatten a Multilevel Doubly Linked List (M) 题目 You are given a doubly linked list which in addition to the next and previous pointers, it could have a ...
分类:
其他好文 时间:
2020-07-11 09:25:02
阅读次数:
50
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:
其他好文 时间:
2020-07-11 09:24:32
阅读次数:
64