why i was getting the correct rotated array
Rotation of an array
Hi chandra
I assume the problem is to left rotate the string by k. You had some problem in the for loop. You forgot to write else part.
Corrected Code : https://ide.codingblocks.com/s/153378
Hope it helps
Mark resolved and give rating if satisfied 