Solution to Left Rotate String from Jobdu

10 Sep

Question (in Chinese): http://ac.jobdu.com/problem.php?pid=1362

Question Name: Left Rotate String

Question Description: given a string, rotate it leftward by some length.

Input: the input might contain multiple test cases. Each line, as a test case, contains a string and a non-negative integer.

Output: print the reversed string.

This question is quite similar with the previous one. So is the solution. The solution is:

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!