add josephu question
This commit is contained in:
@@ -53,6 +53,9 @@ public class DoubleLinkedListDemo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 双向链表
|
||||||
|
*/
|
||||||
class DoubleLinkedList {
|
class DoubleLinkedList {
|
||||||
private final HeroNode2 head = new HeroNode2(0, "", "");
|
private final HeroNode2 head = new HeroNode2(0, "", "");
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class Josephu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 循环单向链表
|
||||||
|
*/
|
||||||
class CircleSingleLinkedList {
|
class CircleSingleLinkedList {
|
||||||
private Boy first = null;
|
private Boy first = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user