Java-hot
上班摸鱼刷算法-Java-hot100-[206]反转链表
class Solution { public ListNode reverseList(ListNode head) { if (head == null || head.next == null) { return head; } ListNode preNode = null; ListNod ......
上班摸鱼刷算法-Java-hot100-[141]环形链表
//快慢指针public class Solution { public boolean hasCycle(ListNode head) { if (head == null || head.next == null) { return false; } ListNode fastNode = he ......
上班摸鱼刷算法-Java-hot100-[160]相交链表
public class Solution { public ListNode getIntersectionNode(ListNode headA, ListNode headB) { if (headA == null || headB == null) { return null; } Lis ......