NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

String Rotation based on Queries

Open smv1999 opened this issue 6 years ago • 4 comments

🚀 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!

smv1999 avatar Aug 16 '20 11:08 smv1999

I can do that in c++

Naman-1234 avatar Aug 16 '20 17:08 Naman-1234

i can do this in java

MohammadSameer08 avatar Aug 17 '20 08:08 MohammadSameer08

I can do this in python

PrasadMulherkar avatar Aug 18 '20 05:08 PrasadMulherkar

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!

github-actions[bot] avatar Oct 18 '20 00:10 github-actions[bot]