Recent posts

LeetCode 3213. Construct String with Minimum Cost

周賽 405。 這題也是很神秘,測資範圍 N = 5e4,依我經驗一看就覺得 python 寫很容易出事。 一般來說測資超過 1e4 之後,O(N^2) 的做法都會超時。 但因為少了最極端的測資,不少人交 O(N^2) 答案竟然過了,甚至賽後看到官方提示也是叫人家用這種作法。