# Longest Common Subpath (LeetCode 1923)
## Approach
Suffix array / rolling hash LCP across paths.
## Edge cases
Name helper functions clearly so the interviewer can track your plan.
## Practice tip
Talk through invariants while coding so the interviewer can follow your reasoning.
Practice with [Linkjob AI](https://www.linkjob.ai/).