Alternating Characters

  • + 2 comments

    The better solution is O(n/2). If your program is not optimed, then it "MAY" thow "Timeout" as it exceeds the maximum time limit.