从零开始:mysql基于Amoeba的集群搭建 准备环境 1、mysql 5.7.24 linux glibc2.12 x86_64.tar.gz 2、amoeba mysql binary 2.0.1 BETA.tar.gz 3、Centos7 下载安装配置运行 1、mysql安装 使用wget命 ...
分类:
数据库 时间:
2019-11-24 12:20:04
阅读次数:
108
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to count the total strobog ...
分类:
其他好文 时间:
2019-11-24 10:19:47
阅读次数:
56
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that are o ...
分类:
其他好文 时间:
2019-11-24 09:33:35
阅读次数:
65
The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a bin ...
分类:
其他好文 时间:
2019-11-23 23:41:44
阅读次数:
82
题意:求一条链 $(u,v)$ 上不同的颜色数。 我们可以求出树的出栈入栈序(or 括号序?我也不确定)。 图(from "attack" ) 然后有一个很优美的性质: 设点 $u$ 的入栈时间为 $dfn[u]$ ,出栈时间为 $low[u]$ 设两个点 $u,v$ 满足 $dfn[u] incl ...
分类:
其他好文 时间:
2019-11-23 21:47:05
阅读次数:
74
题目描述: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Ea ...
分类:
其他好文 时间:
2019-11-23 21:46:28
阅读次数:
61
There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either ...
分类:
其他好文 时间:
2019-11-23 21:36:27
阅读次数:
58
方法:递归 如果一个树的左子树与右子树镜像对称,那么这个树是对称的。 因此,该问题可以转化为:两个树在什么情况下互为镜像? 如果同时满足下面的条件,两个树互为镜像: 它们的两个根结点具有相同的值。 每个树的右子树都与另一个树的左子树镜像对称。 就像人站在镜子前审视自己那样。镜中的反射与现实中的人具有 ...
分类:
其他好文 时间:
2019-11-23 20:22:04
阅读次数:
57
参考博客:https://blog.csdn.net/qq_37708702/article/details/79644936 ...
分类:
其他好文 时间:
2019-11-23 18:08:10
阅读次数:
76
很简单,,但是自己还是没写出来。。。。 class Solution: def sumNumbers(self, root: TreeNode) -> int: self.res=0 def helper(root,tmp): if not root:return if not root.left ...
分类:
其他好文 时间:
2019-11-22 23:54:07
阅读次数:
121