From fa4748c57c315afa0415e83ecf8341636e90f644 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 13 Apr 2021 22:16:11 +0800 Subject: [PATCH] add josephu question --- .../ehlxr/datastructure/linkedlist/DoubleLinkedListDemo.java | 3 +++ .../java/io/github/ehlxr/datastructure/linkedlist/Josephu.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/io/github/ehlxr/datastructure/linkedlist/DoubleLinkedListDemo.java b/src/main/java/io/github/ehlxr/datastructure/linkedlist/DoubleLinkedListDemo.java index 98693fc..d6db5bd 100644 --- a/src/main/java/io/github/ehlxr/datastructure/linkedlist/DoubleLinkedListDemo.java +++ b/src/main/java/io/github/ehlxr/datastructure/linkedlist/DoubleLinkedListDemo.java @@ -53,6 +53,9 @@ public class DoubleLinkedListDemo { } } +/** + * 双向链表 + */ class DoubleLinkedList { private final HeroNode2 head = new HeroNode2(0, "", ""); diff --git a/src/main/java/io/github/ehlxr/datastructure/linkedlist/Josephu.java b/src/main/java/io/github/ehlxr/datastructure/linkedlist/Josephu.java index 2037f00..2e52f14 100644 --- a/src/main/java/io/github/ehlxr/datastructure/linkedlist/Josephu.java +++ b/src/main/java/io/github/ehlxr/datastructure/linkedlist/Josephu.java @@ -38,6 +38,9 @@ public class Josephu { } } +/** + * 循环单向链表 + */ class CircleSingleLinkedList { private Boy first = null;