作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明.谢谢! 计算机很早就走入了我的生活.小学时,家里放一台联想“天琴”的电脑.它霸气的音箱造型,拉风的麦克风,诡异的遥控器,都震撼着我小小的心灵.那时的小屁孩,会花一个下午,努力研究左键.右键和开始菜单.初中时,游戏成了电脑的代名词.在报摊买大众软件,在商场地下室买碟,在家里输入一下午的"show me the money",乐此不疲.到了高中,电脑和网络相连.上网看新闻,泡论坛,
该算法题就是leetcode 406题, 题目描述: Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who have a heigh