Longest common contiguous subarray

0
Remix

Given two integer arrays, return the length of the longest run of values that appears contiguously in both. Start with dynamic programming, then discuss reducing the memory or using binary search with rolling hashes.

AmazonCodingLast asked Sep 2025
No answer yet. Write the first one; the best answer gets endorsed.