Amazon Interview Question
Software Engineer / DevelopersI have the same question in my interview. So simple, I just use 1 min to get the correct answer.
you need 2 loops, for inner one, get the value from B[i], compare the value from A[0]-A[i], if equal, count++, then next B[i]
dynamic programming problem, Longest Common Substring? LCS?
- Zaphod March 30, 2010