mysql> show slave status \G Slave_IO_Running: No Slave_SQL_Running: Yes Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 1236 Last_IO_Error: Got fatal ...
分类:
其他好文 时间:
2019-10-30 18:22:46
阅读次数:
391
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:
其他好文 时间:
2019-10-29 23:30:23
阅读次数:
107
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
编程语言 时间:
2019-10-29 00:47:39
阅读次数:
98
一、Linux的目录结构 bin:全称binary,含义是二进制。该目录中存储的都是一些二进制文件,文件都是刻意被运行的; dev:该目录中主要存放的是外接设备,例如盘、其他的光盘等。在其中的外接设备是不能被直接使用的,需要挂载(类似windows下的分配盘符)。 etc:该目录主要存储一些配置文件 ...
分类:
系统相关 时间:
2019-10-29 00:13:54
阅读次数:
96
Difficulty:Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/validate-binary-search-tree/ Given a binary tree, determine if it ...
分类:
其他好文 时间:
2019-10-28 10:59:44
阅读次数:
121
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2019-10-27 20:29:12
阅读次数:
75
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any ...
分类:
其他好文 时间:
2019-10-27 20:26:49
阅读次数:
87
传送门 首先 $n=\sum_{i=1}^{ans}(2^{x_{ans}}+p)$ 可以变成 $n-ans \cdot p=\sum_{i=1}^{ans}2^{x_{ans}}$ 注意到如果 $n-ans \cdot p$ 二进制下 $1$ 的个数等于 $ans$ ,那么一定有解 (只要把 $x ...
分类:
其他好文 时间:
2019-10-27 18:51:22
阅读次数:
82
235. Lowest Common Ancestor of a Binary Search Tree Easy Easy Easy Given a binary search tree (BST), find the lowest common ancestor (LCA) of two give ...
分类:
其他好文 时间:
2019-10-27 18:33:31
阅读次数:
62
传送门:https://codeforces.com/contest/1247/problem/C 题意::给你一个 n 和 p,有这样的一种二级制 “p-binary” ( 2^x+p , x非负 ); 要你用最少数量的 “p-binary”之和表示 n;无法构成输出-1; 数据大小: 1<=n< ...
分类:
其他好文 时间:
2019-10-27 17:02:18
阅读次数:
62