摘要: GO Slices: 用法与原理 此文是golang blog的笔记,原文地址 https://blog.golang.org/go slices usage and internals Introduction golang的slice类型提供了对类型数据的顺序操作。Slices与其他语言中的ar 阅读全文
posted @ 2017-03-18 20:50 birdhack 阅读(436) 评论(0) 推荐(0) 编辑
摘要: User in Kubernetes All Kubernetes clusters have two categories of users: service accounts managed by Kubernetes, and normal users. Kubernentes集群有两类用户: 阅读全文
posted @ 2017-03-18 17:38 birdhack 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Hadoop HDFS源码分析 关于数据块的类1.BlocksMap官方代码中的注释为:/** * This class maintains the map from a block to its metadata. * block's metadata currently includes blo... 阅读全文
posted @ 2015-02-27 22:57 birdhack 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 读取命名空间镜像和编辑日志数据1.读取命名空间镜像类FSImage是 命名空间镜像的java实现,在源码中,英文注释为,/** * FSImage handles checkpointing and logging of the namespace edits. * */FSImage.loadFS... 阅读全文
posted @ 2015-02-22 16:51 birdhack 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm... 阅读全文
posted @ 2015-02-08 23:31 birdhack 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on... 阅读全文
posted @ 2015-02-02 22:21 birdhack 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially... 阅读全文
posted @ 2015-01-30 22:42 birdhack 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni... 阅读全文
posted @ 2015-01-28 23:19 birdhack 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t... 阅读全文
posted @ 2015-01-27 20:41 birdhack 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 1 public class Solution { ... 阅读全文
posted @ 2015-01-23 22:05 birdhack 阅读(131) 评论(0) 推荐(0) 编辑