Skip to content

Commit b4896d6

Browse files
committed
注释
1 parent 839cee4 commit b4896d6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
### 数据结构与算法
3939
- [红包算法](https://github.com/crossoverJie/Java-Interview/blob/master/src/main/java/com/crossoverjie/red/RedPacket.java)
4040
- [二叉树中序遍历](https://github.com/crossoverJie/Java-Interview/blob/master/src/main/java/com/crossoverjie/algorithm/BinaryNode.java#L76-L101)
41-
- 是否为快乐数字
41+
- [是否为快乐数字](https://github.com/crossoverJie/Java-Interview/blob/master/src/main/java/com/crossoverjie/algorithm/HappyNum.java#L38-L55)
42+
- 链表是否有环
4243

4344
### 附加技能
4445

src/main/java/com/crossoverjie/algorithm/LinkLoop.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public Node(Object data) {
2424
}
2525
}
2626

27+
/**
28+
* 判断链表是否有环
29+
* @param node
30+
* @return
31+
*/
2732
public boolean isLoop(Node node){
2833
Node slow = node ;
2934
Node fast = node.next ;

0 commit comments

Comments
 (0)