Arrays: Left Rotation

  • + 0 comments

    while(d!=0) { int temp=a.get(0); a.remove(0); a.add(temp); d--; } return a;