File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/java/com/crossoverjie/algorithm Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments