二叉树中第二小的节点。给定一个非空特殊的二叉树,每个节点都是正数,并且每个节点的子节点数量只能为 2 或 0。如果一个节点有两个子节点的话,那么这个节点的值不大于它的子节点的值。给出这样的一个二叉树,你需要输出所有节点中的第二小的值。如果第二小的值不存在的话,输出 -1 。例子, Example 1 ...
分类:
其他好文 时间:
2020-03-20 09:13:57
阅读次数:
60
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2020-03-19 22:04:02
阅读次数:
72
既然要玩kube-prometheus, jsonnet,也附带着玩玩啦。。 https://jsonnet.org/learning/tutorial.html 我用的是Golang来玩的,不是C++版本的。 https://github.com/google/go-jsonnet example ...
分类:
Web程序 时间:
2020-03-19 21:35:45
阅读次数:
91
导包: 1.在main目录下新建文件夹libs,将自己的jar包复制进入,然后右键选择 Add As Library 进行导入; 项目结构: 相关源码: DBOpenHelper.java: package com.example.myapplication; import java.sql.Con ...
分类:
移动开发 时间:
2020-03-19 21:22:26
阅读次数:
94
一、原始值和引用值的概念 在 ECMAScript 中,变量可以存在两种类型的值,即原始值和引用值。 1.1 原始值 (1)原始值指的是 原始类型 的值,也叫 基本类型,例如 Number、Stirng、Boolean、Null、Underfined 。 (2)存储在栈(stack)中的简单数据段, ...
分类:
编程语言 时间:
2020-03-19 13:18:54
阅读次数:
54
Why is Blast useful? With the use of BLAST, you can possibly correctly identify a species or find homologous species. This can be useful, for example, ...
分类:
其他好文 时间:
2020-03-19 10:43:54
阅读次数:
84
整数转换英文表示。题意是给一个整数,请转换成英文表示。例子, Example 1: Input: 123 Output: "One Hundred Twenty Three" Example 2: Input: 12345 Output: "Twelve Thousand Three Hundred ...
分类:
其他好文 时间:
2020-03-19 09:30:00
阅读次数:
67
Uiautomator是Android原生测试框架,可以用于白盒接口测试也可以用于UI自动化测试,Uiautomator分1.0版本与2.0版本,它们都是基于UiAutomation的测试框架,都是通过UiAutomation的接口操作设备, 1.0权限更高,运行更灵活,2.0针对app定制化更高, ...
分类:
其他好文 时间:
2020-03-18 23:51:26
阅读次数:
83
题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Inpu ...
分类:
其他好文 时间:
2020-03-18 23:36:39
阅读次数:
72
第一次用 Spring Starter Project 创建一个Spring应用时,POM 文件报错: Project build error: Non-resolvable parent POM for com.example:demo-1:0.0.1-SNAPSHOT: Failure to t ...
分类:
编程语言 时间:
2020-03-18 22:04:21
阅读次数:
104