Hackathon | 2022
Google · Question · Posted Jul 2023
Question 1 Charlie has a magic mirror. The mirror shows right rotated versions of a given word. To generate different right-rotations of a word, write the word in a circle in clockwise order, then start reading from any given character in clockwise order till you have covered all the characters. For example: In the word "sample", If we start with 'p', we get the right rotated word as "plesam". There are six such right rotations of "sample" including itself. ...
The full answer & interview discussion are available to premium members.
Log in Create a free account