這裡的prefix sum 等同於每筆資料排序後的位置(index)。 ... 注意,這裡使用了 Vec.resize ,因為Rust initialize 空的 Vec 時並不會插入0 或其他預設值。
確定! 回上一頁