# Find the Prefix Common Array of Two Arrays (LeetCode 2657)
## Approach
Two sets grow; count intersection size after each index.
## Edge cases
When k exceeds array length.
## Practice tip
Narrate tradeoffs out loud before coding.
Interview prep: [try it free](https://www.linkjob.ai/).