Ad
  • Custom User Avatar

    finally somebody, who cares about clean, reader-friendly code :)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    although checking equalsIgnoreCase on reversed string is somehow clever,
    we make a copy of the array, and then we reverse it, and on the top of that, if string is a palindrome,
    algorightm would make double check on every character.
    This could be avoidied by making iteration using str.chatAt(i) .. well .. but it wouldnt be so clean

  • Custom User Avatar

    But this solution, doest not handle case, when we find unchanged meerkats
    "Something has gone terribly wrong - someone has gone and switched their heads and tails around!"
    It does not say that "switched ALL their heads and tails around" ..

    The only challange in this task is to understand business logic ...

  • Custom User Avatar

    But this solution, doest not handle case, when we find unchanged meerkats
    "Something has gone terribly wrong - someone has gone and switched their heads and tails around!"
    It does not say that "switched ALL their heads and tails around" ..

    The only challange in this task is to understand business logic ...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution