RosettaCodeData/Task/Longest-increasing-subsequence/PowerShell/longest-increasing-subsequence-2.ps1

3 lines
150 B
PowerShell
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
( Get-LongestSubsequence 3, 2, 6, 4, 5, 1 ) -join ', '
( Get-LongestSubsequence 0, 8, 4, 12, 2, 10, 6, 16, 14, 1, 9, 5, 13, 3, 11, 7, 15 ) -join ', '