hmm... can you explain how to get query cost to O(1)?
is
【在 r********t 的大作中提到】 : you are wrong. if the rail is connected to the head, then the linked list is : circular, whose query cost is O(1) : : 解法在2:00处:
f*b
16 楼
I wonder too
【在 m*****f 的大作中提到】 : hmm... can you explain how to get query cost to O(1)? : : is
g*y
17 楼
what kind of query? how?
is
【在 r********t 的大作中提到】 : you are wrong. if the rail is connected to the head, then the linked list is : circular, whose query cost is O(1) : : 解法在2:00处:
k*j
18 楼
第二道题就是直接sort?
m*9
19 楼
具体给解释一下把,谢谢
is
【在 r********t 的大作中提到】 : you are wrong. if the rail is connected to the head, then the linked list is : circular, whose query cost is O(1) : : 解法在2:00处: