首頁 C++lower_bound、upper_bound2022年1月28日153 views1 minute read 透過二分搜尋法,在範圍中找出「>(up)」或「≥(low)」val 的最小 iterator。lower_bound(v.begin(), v.end(), val);