Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.22 KB

< Previous                  Next >

Related Topics

[Array] [Two Pointers]

Hints

Hint 1 Check for a common prefix of the two arrays.
Hint 2 After this common prefix, there should be one array similar to the other but shifted by one.
Hint 3 If both arrays can be shifted, return -1.