abc_begin

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页

2018年1月7日 #

82. Single Number【easy】

摘要: Given 2*n + 1 numbers, every numbers occurs twice except one, find it. Given 2*n + 1 numbers, every numbers occurs twice except one, find it. Example 阅读全文

posted @ 2018-01-07 19:53 LastBattle 阅读(110) 评论(0) 推荐(0) 编辑

53. Reverse Words in a String【easy】

摘要: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Given an input string, rev 阅读全文

posted @ 2018-01-07 19:34 LastBattle 阅读(267) 评论(0) 推荐(0) 编辑

2018年1月6日 #

查看linux内核和版本信息

摘要: 一、查看Linux内核版本命令(2种方法): 1、cat /proc/version Linux version 3.10.0_1-0-0-8 (root@xxx) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Thu O 阅读全文

posted @ 2018-01-06 20:09 LastBattle 阅读(8161) 评论(0) 推荐(0) 编辑

56. Two Sum【easy】

摘要: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n 阅读全文

posted @ 2018-01-06 13:48 LastBattle 阅读(164) 评论(0) 推荐(0) 编辑

Lintcode记录

摘要: 汇总贴 56. Two Sum【easy】 167. Add Two Numbers【easy】 53. Reverse Words in a String【easy】 82. Single Number【easy】 17. Subsets【medium】 18. Subsets II【medium 阅读全文

posted @ 2018-01-06 13:05 LastBattle 阅读(112) 评论(0) 推荐(0) 编辑

2018年1月5日 #

zookeeper伪分布式安装

摘要: a56爆大奖在线娱乐介绍zookeeper伪分布式安装。 所谓 “伪分布式集群” 就是在1台PC中启动多个zookeeper的实例。“完全分布式集群” 是每1台PC启动1个ZooKeeper实例。 由于a56爆大奖在线娱乐的测试环境PC数量有限,a56爆大奖在线娱乐在1台PC中启动3个zookeeper的实例。下面以3个节点为例,介绍安装的过程 新 阅读全文

posted @ 2018-01-05 21:22 LastBattle 阅读(2260) 评论(0) 推荐(0) 编辑

zookeeper单节点安装

摘要: a56爆大奖在线娱乐介绍zookeeper单节点安装。 下载 http://archive.apache.org/dist/zookeeper/zookeeper-3.4.6/ 解压后,把conf中的zoo_sample.cfg复制一份成为zoo.cfg,修改一下里面的路径: 启动zookeeper [work@x 阅读全文

posted @ 2018-01-05 20:52 LastBattle 阅读(6942) 评论(0) 推荐(0) 编辑

491. Palindrome Number【easy】

摘要: Check a positive number is a palindrome or not. A palindrome number is that if you reverse the whole number you will get exactly the same number. Noti 阅读全文

posted @ 2018-01-05 14:59 LastBattle 阅读(204) 评论(0) 推荐(0) 编辑

hash slot(虚拟桶)

摘要: 在分布式集群中,如何保证相同请求落到相同的机器上,并且后面的集群机器可以尽可能的均分请求,并且当扩容或down机的情况下能对原有集群影响最小。 round robin算法:是把数据mod后直接映射到真实节点上面,这造成节点个数和数据的紧密关联、后期缺乏灵活扩展。 一致性哈希算法:多增加一层虚拟映射层 阅读全文

posted @ 2018-01-05 11:53 LastBattle 阅读(10910) 评论(5) 推荐(0) 编辑

2018年1月4日 #

156. Merge Intervals【easy】

摘要: Given a collection of intervals, merge all overlapping intervals. Given a collection of intervals, merge all overlapping intervals. Example Given inte 阅读全文

posted @ 2018-01-04 15:24 LastBattle 阅读(252) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页