leetcode

2657. Find the Prefix Common Array of Two Arrays

Solution code

Time complexity: O(n)

Space complexity: O(n)