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

longest_increasing_subsequence

関数 · 文字列ユーティリティ

template <class T>
int longest_increasing_subsequence(const std::vector<T> &v, bool strict = true);

概要

最長増加部分列の長さ

計算量

関連項目