1940. Longest Common Subsequence Between Sorted Arrays
ArrayHash TableCounting
Hints
Hint 1
Fix one array.
Hint 2
Choose the next array and get the common elements.
Hint 3
Use the common elements as the new fixed array and keep merging with the rest of the arrays.
Preparing judge…