algo — C++23 日本語リファレンス GitHub

compress

関数 · 座標圧縮

template <class T>
std::vector<int> compress(const std::vector<T> &v);

概要

座標圧縮

パラメータ

名前 説明
v 圧縮対象の列

戻り値

各要素を昇順の圧縮番号へ変換した列

計算量

関連項目