linkedlist
文章平均质量分 76
jialuyyy
这个作者很懒,什么都没留下…
展开
-
Implement Stack Using LinkedList
import java.io.*; import java.util.*; /* * To execute Java, please define "static void main" on a class * named Solution. * * If you need more classes, simply define them inline. */ interface S原创 2015-07-04 23:42:44 · 388 阅读 · 0 评论 -
Linked List Cycle I II
Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? Keep two kinds of pointers: faster pointe原创 2015-07-11 22:31:17 · 176 阅读 · 0 评论 -
LRU Cache
LRU Cache Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be原创 2015-06-09 09:58:23 · 162 阅读 · 0 评论 -
Copy List With Random Pointer
Copy List with Random Pointer A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of th原创 2015-07-11 21:52:40 · 221 阅读 · 0 评论