String Rotation based on Queries
🚀 Feature
A String str and number of queries q are given as input. The queries are in the form space separated values with the direction and the amount by which the string is to be rotated. The first characters after each query is concatenated as a separate string and is checked whether it is a substring of the original string. If yes, print YES otherwise print NO. For ex: Input: career 3 L 2 R 3 L 2 Output: NO
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Helps in Understanding String Shift operations
Pitch
This will increase the understanding of string manipulation.
Happy Coding!
I can do that in c++
i can do this in java
I can do this in python
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!