hch's site

hi, I am hch. welcome to my site. this site consists of mainly trivial stuff and some programming contents.

latest microblog posts

2 minutes ago

6 days ago
Permutation Subsequence
我諗到 naive 嘅 O(n^2)
我都諗到用 BST 嘅 O(nlogn) 但唔識 implement
但我諗唔到原來 C++ 嘅 set 就係 BST
可以 O(1) query min 同 max
以為佢好似 Python 咁要 O(n) 先揾到 min 同 max

8 days ago
我覺得自己 algorithm 嘅實力已經到咗頂

made with Neat CSS, content on this blog is licensed under CC BY 4.0.