nekomata_saren@tg says to YSITD
這才O(n) average