Li-Fan Chen
says to
YSITD
我的好像是 O(n^2)