Ad
  • Default User Avatar

    Ignore letter case

    not a kata issue. your code fails for e.g. "moOse"

  • Custom User Avatar

    There is nothing to fix (well, I restored a sample test in the description, someone messed it up, but that was a sample test too, so you should have seen it), neither in the description nor the tests, and I already explained what that means, bye.

  • Custom User Avatar

    Ignore letter case means a capital letter is the same as its lowercase version. How you handle that, it's up to you. Not a kata issue.

  • Custom User Avatar

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

  • Custom User Avatar

    You need to take a deeper look into your code. Right now it will always return true, because you're storing a character at some index, and then checking from beginning again so you reach the same index again, and obviously it will return true when you compare the 2.

    Make use of console.log to debug your code, avoid global variables, and take a closer look at the description. "aba" should return false.

  • Default User Avatar

    This comment has been deleted.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    Your code always returns value after first iteration. You can easily see that if you add one print().

  • Default User Avatar

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

  • Custom User Avatar

    Your code is wrong. Not a kata issue.

    Ignore letter case.

  • Default User Avatar

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

  • Custom User Avatar

    Good bit of code golf. But definitely wouldn't want to come across this in a production codebase.

  • Custom User Avatar

    You need to import the libraries yourself.

  • Default User Avatar

    Why it doesnot has Arrays.stream()?

  • Loading more items...