深入理解hadoop之机架感知 机架感知 hadoop的replication为3,机架感知的策略为: 第一个block副本放在和client所在的datanode里(如果client不在集群范围内,则这第一个node是随机选取的)。第二个副本放置在与第一个节点不同的机架中的datanode中(随机 ...
分类:
其他好文 时间:
2018-07-15 11:16:43
阅读次数:
204
C. Annoying Present time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Annoying Present ...
分类:
其他好文 时间:
2018-07-15 11:00:21
阅读次数:
255
problem A long distance telephone company charges its customers by the following rules: Making a long distance call costs a certain amount per minute, ...
分类:
其他好文 时间:
2018-07-14 23:03:09
阅读次数:
261
Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth possibl ...
分类:
其他好文 时间:
2018-07-10 17:52:45
阅读次数:
176
二叉树中两个节点的最长距离可能有三种情况:1.左子树的最大深度+右子树的最大深度为二叉树的最长距离2.左子树中的最长距离即为二叉树的最长距离3.右子树种的最长距离即为二叉树的最长距离因此,递归求解即可 ...
分类:
其他好文 时间:
2018-07-10 11:11:58
阅读次数:
122
问题描述: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the ...
分类:
其他好文 时间:
2018-07-07 10:43:04
阅读次数:
134
Reflection Probe 反射探头能够将场景中的光线更好的反射出来。需要反射哪个对象身上的光线,就把该对象设置为 Reflection Probe Static . 灯光探头组(Light Probe Group)提高环境光的反射效果。 参数介绍: Type : 烘焙类型 Runtime s ...
分类:
其他好文 时间:
2018-07-04 22:47:31
阅读次数:
139
这是一个生成根据SQL排序函数代码 接下来下面是设置经纬度范围内的数据 下面算出经纬度范围内的数据控制函数 要实现根据经纬度排序 就直接调用distance_sql(lon1,lat1,lon2,lat2)传入参数 并且as 一个别名例如 as distance, 然后sql语句中 order by ...
分类:
编程语言 时间:
2018-07-04 18:56:11
阅读次数:
251
leetcode周赛,早上起来发现没网,用热点意识模糊的a了三个水题。 1.Lemonade Change 简单模拟题,收到十元用五元钱找回,收到20元时优先用一张10一张5,如果10不够用3张5,如果没有就返回flase(贪心)。 2.All Nodes Distance K in Binary ...
分类:
其他好文 时间:
2018-07-02 01:29:40
阅读次数:
190
路由表的更新 距离矢量 什么是距离矢量? Distance Vector 链路状态 什么是链路状态? Link State ...
分类:
其他好文 时间:
2018-06-29 21:45:12
阅读次数:
236