//查看kubernetes-dashboard create -f xxx.yaml 拉取失败的原因:ErrImagePull、ImagePullBackOff kubectl describe pod kubernetes-dashboard-669f9bbd46-dph47kubectl ge ...
分类:
其他好文 时间:
2019-11-07 13:17:06
阅读次数:
98
题目描述 输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构) 思路 首先遍历a树,找和b树根结点值相等的结点,找到后判断是不是子树。 判断是不是子树的时候,用递归的方法,判断根节点,再判断左子右子。 代码 # -*- coding:utf-8 -*- # cl ...
分类:
编程语言 时间:
2019-11-04 11:27:38
阅读次数:
98
链接: https://vjudge.net/problem/POJ 2891 题意: Elina is reading a book written by Rujia Liu, which introduces a strange way to express non negative integ ...
分类:
其他好文 时间:
2019-11-04 00:09:48
阅读次数:
138
Pandas提供API来自定义其行为的某些方面,大多使用来显示。 API由五个相关函数组成。它们分别是: get_option() set_option() reset_option() describe_option() option_context() 常用参数,请参考下表: get_optio ...
分类:
其他好文 时间:
2019-11-02 14:05:13
阅读次数:
85
题目描述 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。 思路 前序遍历第一个节点是根节点,该节点在中序遍历中 ...
分类:
编程语言 时间:
2019-11-02 11:42:35
阅读次数:
75
数据库表的相关操作 添加数据库表 语法: 实例: 查看数据库表 语法: show tables; 实例: 查看数据库表结构 1)使用DESCRIBE/DESC 语法: 实例: 2)SHOW CREATE TABLE 语法: 实例: 使用此方法查看数据库表结构时,不仅可以查看表创建时候的详细语句,而且 ...
分类:
数据库 时间:
2019-10-30 13:34:57
阅读次数:
98
题目描述 操作给定的二叉树,将其变换为源二叉树的镜像。 输入描述: 二叉树的镜像定义:源二叉树 8 / \ 6 10 / \ / \ 5 7 9 11 镜像二叉树 8 / \ 10 6 / \ / \ 11 9 7 5代码实现(Java) 1 /** 2 public class TreeNode ...
分类:
其他好文 时间:
2019-10-29 23:35:22
阅读次数:
121
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the ...
分类:
移动开发 时间:
2019-10-29 13:23:13
阅读次数:
101
课后习题 1. Brie?y describe the differences between the webbrowser, requests, BeautifulSoup, and selenium modules.Answer: The webbrowser has an open() met ...
分类:
其他好文 时间:
2019-10-26 17:11:04
阅读次数:
63
在mysql中 1.查看表的基本结构: describe 表名; desc 表名; desc tb_tmp; 查看表的结构 2.查看表详细结构 show create table 表名; show create table tb_tmp; eg: create table 'tb_tmp' ( 'p ...
分类:
数据库 时间:
2019-10-25 18:10:03
阅读次数:
135