Given a list of strings, group them such that all strings in a group belong to the same shifting sequence. A string 's2' is a shifted version of 's1' if 's1' can be transformed into 's2' by shifting…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.