Pocket Gems Interview Question: Assume you have a method isSu... | Glassdoor

Interview Question

Software Engineer Interview San Francisco, CA

Assume you have a method isSubstring which checks if one

  word is a substring of another word. Given two strings, use only the isSubstring method to check if one string is a rotation of another string. (i.e. "waterbottle" is a rotation of "erbottlewat".)

Interview Answer

1 Answer


Hey guys I used rooftop slushie to get an answer for this interview at Pocket Gems. You should give it a try.


Anonymous on Jul 15, 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.