Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような順序付けされていないセットがあるとします。1,2,3,4,0,5,6,7、-1、-2、-3;
その中で最も長い昇順のサブセットを見つけます。
上記のサンプルセットで期待される結果は次のとおりです:1,2,3,4,5,6,7
それを実装する方法は?
この問題は呼ばれ、ここでLongest increasing subsequence読むことができます。
Longest increasing subsequence