随笔分类 -  栈和队列

摘要:优先队列详解(转载) 优先队列:顾名思义,首先它是一个队列,但是它强调了“优先”二字,所以,已经不能算是一般意义上的队列了,它的“优先”意指取队首元素时,有一定的选择性,即根据元素的属性选择某一项值最优的出队~ 百度百科上这样描述的: 优先级队列 是不同于先进先出队列的另一种队列。每次从队列中取出的 阅读全文
posted @ 2017-08-21 10:18 白泽霜 阅读(172) 评论(0) 推荐(0)
摘要:I’m out of stories. For years I’ve been writing stories, some rather silly, just to make simple problems look difficult and complex problems look easy 阅读全文
posted @ 2017-07-22 11:17 白泽霜 阅读(153) 评论(0) 推荐(0)
摘要:我们的化学生物学家发明了一种新的叫stripies非常神奇的生命。该stripies是透明的无定形变形虫似的生物,生活在果冻状的营养培养基平板菌落。大部分的时间stripies在移动。当他们两个碰撞,会有新stripie生成,而旧的不见了。经过长期研究,他们发现新stripies的体重不等于消失的s 阅读全文
posted @ 2017-07-22 08:50 白泽霜 阅读(183) 评论(0) 推荐(0)
摘要:E - Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a) if it is the empt 阅读全文
posted @ 2017-07-20 11:25 白泽霜 阅读(363) 评论(0) 推荐(0)