原题链接在这里:https://leetcode.com/problems/find-median-from-data-stream/ 题目: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle va
题目: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? leetCode。让head不断走一步,如果cur不为null,走两步,这样如果存在cycle,cur会追上head。 /*** Definition for