• 算法小程序-Find_K'th_Smallest_Element(Expected Linear Time)

    25 Sep 2016

    Problem Description

    Given an array and a number k where k is smaller than size of array, we need to find the k’th smallest element in the given array.

    Read More »


  • 算法小程序-DutchNationalFlagProblem

    25 Sep 2016

    Problem Description

    The flag of the Netherlands consists of three colors: red, white and blue.Given balls of these three color arranged randomly in a line (the actual number of balls does not matter),the task is to arrange them such that all balls of the same color are together and their collective color groups are in the correct order.

    Read More »


  • git基本操作

    18 Sep 2016

    工作流

    • 工作目录: 持有实际文件
    • 暂存区(Index): 类似于缓存区域,临时保存你的改动
    • HEAD: 指向你最后一次提交的结果

    Read More »


  • jvm垃圾回收

    01 Sep 2016

    垃圾回收(GC)小结(部分文字摘自Thing in Java)

    最近开始学习jvm垃圾回收相关知识,大致做以下总结,并记录下不太懂得点

    Read More »


  • this关键字

    30 Aug 2016

    this关键字作用

    • 调用一个构造器(必须将构造器调用置于最起始处)
    • 用this指代数据成员

    Read More »