链表
LBY找工作
这个作者很懒,什么都没留下…
展开
-
Leetcode之Partition List
Question: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal tox. You should preserve the original relative order of the原创 2013-08-11 14:24:58 · 377 阅读 · 0 评论 -
Check If Singly List Is Circular
主题:面经 题目: Given a singly list. Check if it is circular. Code: import java.util.*; class Test{ public static void main(String[] args){ Node n1 = new Node(1); Node n2 = new Node(2); N原创 2013-08-17 14:10:26 · 312 阅读 · 0 评论