枚举例题:package cn.itcast_02;/* * 通过JDK5提供的枚举来做枚举类 */public enum Direction { FRONT, BEHIND, LEFT, RIGHT;}---------------------------------------package c...
分类:
其他好文 时间:
2015-07-16 02:06:38
阅读次数:
192
伪代码:TopLogical(G) call DFS to compute finishtime as each vertex finished , insert it onto the front of a linked list return the linked list of ...
分类:
编程语言 时间:
2015-07-16 00:42:32
阅读次数:
135
Facebook的体系结构分析---外文转载From various readings and conversations I had, my understanding of Facebook's current architecture is:Web front-end written in P...
分类:
其他好文 时间:
2015-07-15 12:57:19
阅读次数:
128
java实现链队列的类代码:package linkqueue;public class LinkQueue { class Element { Object elem; Element next; } private Element front; private Element rear;...
分类:
编程语言 时间:
2015-07-14 20:09:07
阅读次数:
134
LeetCode上面的一道题目,原文如下:
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- G...
分类:
其他好文 时间:
2015-07-14 11:23:27
阅读次数:
131
前端职位越来越火,但是前端职位的要求却很高,虽然入门很简单。多少时候我都觉得虽然我现在也在做前端,但却是个半路出家的前端。到底还有多少的差距?自己好好看看吧。拔赤版:克军版:对照这两个结构图检查一下,感觉还是很汗颜的,差距太大了。为什么有些人抱怨工资低(当..
分类:
其他好文 时间:
2015-07-14 06:21:20
阅读次数:
191
题目来源:http://www.nowcoder.com/ta/front-end1.数组去重1.两个循环:思路:新建一个新数组用于存放重复的数组元素,通过两个循环,比较两个数组元素是否相同。外循环控制第一个比较元素,内循环控制第二个比较元素,如果有重复元素则将该元素添加到新数组中,最后返回这个新数...
分类:
其他好文 时间:
2015-07-12 23:01:26
阅读次数:
205
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-07-12 17:06:51
阅读次数:
110
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front element.empty(...
分类:
其他好文 时间:
2015-07-11 16:48:45
阅读次数:
86
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-07-11 07:54:35
阅读次数:
116