Array 旋转数组Rotate-Array List 移除链表的元素Remove-Linked-List-Elements 逆转链表Reverse-Linked-List-II 找到两链表的交点Intersection-of-Two-Linked-Lists 链表有环Linked-List-Cycle Stack 能乘多少水Trapping-Rain-Water 带有min操作的栈 ...
阅读全文 »

OJ上的一些水题(可用来练手和增加自信)(poj3299,poj2159,poj2739,poj1083,poj2262,poj1503,poj3006,poj2255,poj3094) 初期:一.基本算法:(1)枚举. (poj1753,poj2965) (2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法. (4)递推. (5)构造法.(poj3295) (6) ...
阅读全文 »

计算机1班第一次班级聚会经过两个礼拜的PS,陈辰同学终于把聚会的照片PO出来了。计算机1班第一次聚会在哈工大的筒子楼(莘语轩),东北菜馆。作为一个在北京上了四年学的正宗南方人表示,鱼香茄子真的好难吃。虽然菜没点好不咋好吃,但大家玩得都很开心。对了,陈辰你还有半打啤酒下次聚会必须喝掉啊。 据说隔壁计算机2班的同学都很能喝,所以下次是不是要考虑和二班联谊一下呢? 看到图片,钟尚儒同学表示又多了PS的 ...
阅读全文 »

港大的韶哥来大学城开学第一周,韶哥特意从香港过来深圳,顺便来了大学城看我们。在这边的一中共四位:心一、蔡轩、贺思颖和我。心一和蔡轩都在汇丰,贺思颖和我在信工。 一起吃了晚饭,之后去唱了K。 汇丰楼下的尚书房合照服务员帮忙拍的,拍完后说:“后面那位男同学没笑” 我们看过来一看,“噗…韶哥你的表情怎么这么严肃…” 爱学习的girl第一周真是太忙了,各种报告各种会。于是趁着等菜的间隙确认了一下第二天的安 ...
阅读全文 »

题目链接trapping-rain-water 题目描述(Description)Trapping rain water Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap aft ...
阅读全文 »

题目链接min-stack 题目描述(Description)Min Stack Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the el ...
阅读全文 »

题目链接valid-parentheses/ 题目描述(Description)Valid Parentheses Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. The brackets must close ...
阅读全文 »