lists[i] is sorted in strictly increasing order.
Find the longest sequence that can be obtained from every list by crossing out elements (the rest keep their order). Return it as a list.lists=[[2, 5, 8, 13], [1, 2, 8, 9, 13], [2, 3, 8, 13, 20]] → [2, 8, 13]
All three lists contain 2, 8 and 13.
lists=[[4, 6], [5, 7]] → []
There are no shared numbers, so the answer is empty.
lists[i] is strictly increasinglists=[[2, 5, 8, 13], [1, 2, 8, 9, 13], [2, 3, 8, 13, 20]]
[2, 8, 13]
Run checks the first 3 tests in your browser. Submit checks all 98 tests on the server, hidden ones included.