03 2018 档案

摘要:第二章 入门 HBase写路径: 增加新行和修改已有的行,内部机制是一样的。 写入的时候,会写到预写日志(WAL)和MemStore中。 MenmStore是内存里的写入缓冲区。填满后,会将数据刷写到硬盘里,生成一个HFile,HFile是HBase的低层存储格式。 一个列族可以有多个HFile,但 阅读全文
posted @ 2018-03-26 22:16 __Meng 阅读(215) 评论(0) 推荐(0) 编辑
摘要:第一章 简介 背景: GFS:集群存储海量数据,数据在节点间冗余复制,即使一台存储服务器发生故障,也不会影响可用性。 GFS的缺点:适合存储少许非常大的文件,而不适合存储大量小文件,因为文件的元数据信息存储在主节点的内存中,文件越多主节点压力越大。 BigTable:RDBMS在大规模处理中有缺点, 阅读全文
posted @ 2018-03-24 16:20 __Meng 阅读(744) 评论(0) 推荐(0) 编辑
摘要:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2018-03-21 17:03 __Meng 阅读(117) 评论(0) 推荐(0) 编辑
摘要:Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur 阅读全文
posted @ 2018-03-21 16:21 __Meng 阅读(96) 评论(0) 推荐(0) 编辑
摘要:Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Example 1: Example 2: 阅读全文
posted @ 2018-03-21 16:04 __Meng 阅读(113) 评论(0) 推荐(0) 编辑
摘要:Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 阅读全文
posted @ 2018-03-21 15:29 __Meng 阅读(117) 评论(0) 推荐(0) 编辑
摘要:Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem and cre 阅读全文
posted @ 2018-03-21 15:05 __Meng 阅读(95) 评论(0) 推荐(0) 编辑
摘要:Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2018-03-21 11:20 __Meng 阅读(168) 评论(0) 推荐(0) 编辑
摘要:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2018-03-21 10:46 __Meng 阅读(101) 评论(0) 推荐(0) 编辑
摘要:Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文
posted @ 2018-03-21 10:23 __Meng 阅读(148) 评论(0) 推荐(0) 编辑
摘要:Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 判断单链表是否是回文的 C++(25ms): 阅读全文
posted @ 2018-03-20 16:18 __Meng 阅读(102) 评论(0) 推荐(0) 编辑
摘要:On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2018-03-20 16:00 __Meng 阅读(102) 评论(0) 推荐(0) 编辑
摘要:Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa 阅读全文
posted @ 2018-03-20 15:18 __Meng 阅读(408) 评论(0) 推荐(0) 编辑
摘要:Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2018-03-19 20:59 __Meng 阅读(112) 评论(0) 推荐(0) 编辑
摘要:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
posted @ 2018-03-19 14:54 __Meng 阅读(117) 评论(0) 推荐(0) 编辑
摘要:cp命令用来将一个或多个源文件或者目录复制到指定的目的文件或目录。它可以将单个源文件复制成一个指定文件名的具体的文件或一个已经存在的目录下。 cp命令还支持同时复制多个文件,当一次复制多个文件时,目标文件参数必须是一个已经存在的目录,否则将出现错误。 阅读全文
posted @ 2018-03-18 21:59 __Meng 阅读(192) 评论(0) 推荐(0) 编辑
摘要:Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest palindro 阅读全文
posted @ 2018-03-18 20:43 __Meng 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Shuffle a set of numbers without duplicates. Example: 阅读全文
posted @ 2018-03-18 16:30 __Meng 阅读(87) 评论(0) 推荐(0) 编辑
摘要:rmdir命令用来删除空目录。当目录不再被使用时,或者磁盘空间已到达使用限定值,就需要删除失去使用价值的目录。利用rmdir命令可以从一个目录中删除一个或多个空的子目录。该命令从一个目录中删除一个或多个子目录,其中dirname佬表示目录名。如果dirname中没有指定路径,则删除当前目录下由dir 阅读全文
posted @ 2018-03-18 12:25 __Meng 阅读(186) 评论(0) 推荐(0) 编辑
摘要:mkdir命令用来创建目录。该命令创建由dirname命名的目录。如果在目录名的前面没有加任何路径名,则在当前目录下创建由dirname指定的目录;如果给出了一个已经存在的路径,将会在该目录下创建一个指定的目录。在创建目录时,应保证新建的目录与它所在目录下的文件没有重名。 注意:在创建文件时,不要把 阅读全文
posted @ 2018-03-18 12:17 __Meng 阅读(473) 评论(0) 推荐(0) 编辑
摘要:pwd命令以绝对路径的方式显示用户当前工作目录。命令将当前目录的全路径名称(从根目录)写入标准输出。全部目录使用/分隔。 第一个/表示根目录,最后一个目录是当前目录。执行pwd命令可立刻得知您目前所在的工作目录的绝对路径名称。 mcc@slave03:~/abc$ pwd/home/mcc/abc 阅读全文
posted @ 2018-03-18 12:08 __Meng 阅读(201) 评论(0) 推荐(0) 编辑
摘要:chmod命令用来变更文件或目录的权限。在UNIX系统家族里,文件或目录权限的控制分别以读取、写入、执行3种一般权限来区分,另有3种特殊权限可供运用。用户可以使用chmod指令去变更文件与目录的权限,设置方式采用文字或数字代号皆可。符号连接的权限无法变更,如果用户对符号连接修改权限,其改变会作用在被 阅读全文
posted @ 2018-03-17 15:49 __Meng 阅读(192) 评论(0) 推荐(0) 编辑
摘要:chown命令改变某个文件或目录的所有者和所属的组,该命令可以向某个用户授权,使该用户变成指定文件的所有者或者改变文件所属的组。 用户可以是用户或者是用户D,用户组可以是组名或组id。文件名可以使由空格分开的文件列表,在文件名中可以包含通配符。 只有文件主和超级用户才可以便用该命令。 阅读全文
posted @ 2018-03-17 14:58 __Meng 阅读(189) 评论(0) 推荐(0) 编辑
摘要:chgrp命令用来改变文件或目录所属的用户组。该命令用来改变指定文件所属的用户组。其中,组名可以是用户组的id,也可以是用户组的组名。 文件名可以 是由空格分开的要改变属组的文件列表,也可以是由通配符描述的文件集合。 如果用户不是该文件的文件主或超级用户(root),则不能改变该文件的组。 在UNI 阅读全文
posted @ 2018-03-17 14:32 __Meng 阅读(2237) 评论(0) 推荐(0) 编辑
摘要:Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the roo 阅读全文
posted @ 2018-03-16 16:20 __Meng 阅读(118) 评论(0) 推荐(0) 编辑
摘要:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2018-03-16 14:47 __Meng 阅读(139) 评论(0) 推荐(0) 编辑
摘要:Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a 阅读全文
posted @ 2018-03-16 14:33 __Meng 阅读(162) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. 阅读全文
posted @ 2018-03-15 19:40 __Meng 阅读(114) 评论(0) 推荐(0) 编辑
摘要:Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tree is d 阅读全文
posted @ 2018-03-15 18:53 __Meng 阅读(183) 评论(0) 推荐(0) 编辑
摘要:Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文
posted @ 2018-03-15 16:23 __Meng 阅读(101) 评论(0) 推荐(0) 编辑
摘要:S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per 阅读全文
posted @ 2018-03-14 22:06 __Meng 阅读(243) 评论(0) 推荐(0) 编辑
摘要:Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except  阅读全文
posted @ 2018-03-13 18:52 __Meng 阅读(124) 评论(0) 推荐(0) 编辑
摘要:Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requ 阅读全文
posted @ 2018-03-13 14:37 __Meng 阅读(166) 评论(0) 推荐(0) 编辑
摘要:In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascend 阅读全文
posted @ 2018-03-12 09:51 __Meng 阅读(135) 评论(0) 推荐(0) 编辑
摘要:We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-03-11 19:12 __Meng 阅读(168) 评论(0) 推荐(0) 编辑
摘要:There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison 阅读全文
posted @ 2018-03-11 12:15 __Meng 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2018-03-11 10:44 __Meng 阅读(124) 评论(0) 推荐(0) 编辑
摘要:An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, 阅读全文
posted @ 2018-03-10 19:12 __Meng 阅读(152) 评论(0) 推荐(0) 编辑
摘要:X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate 阅读全文
posted @ 2018-03-10 12:45 __Meng 阅读(430) 评论(0) 推荐(0) 编辑
摘要:Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2018-03-09 20:44 __Meng 阅读(139) 评论(0) 推荐(0) 编辑
摘要:You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-03-08 21:17 __Meng 阅读(132) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示