Py3排序 C++nth_element速解Leetcode 2099 Find Subsequence of Length K With the Largest Sum
C++的nth_element很好用,基本上是做partition,在這個問題可取代sort
----
C++'s nth_element is very useful. It basically does partitioning and can replace sort in this problem.
/* 自定義代碼塊樣式 */
沒有留言:
張貼留言