Ad
  • Default User Avatar

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

  • Default User Avatar

    ah that makes alot more sense, thank you!

  • Custom User Avatar

    No one gets offended, don't worry. :D But ranks can't be changed once a kata is approved. The reason why you consider this kata more difficult than a "normal" 7 kyu is because this is a new kata (published in 2023). Ranking problems (in terms of published date) were more generous in the past, but with the time, active members and power users started to rank problems more "serious", so now katas have lower ranks. For example, a very old 5 kyu kata would be today 7 kyu maybe. :P I suggest you to sort the problems by older in order to avoid harder problems for now, and tackle these harder problems in the future :)

  • Default User Avatar

    your right, sorry did not realize the site gets offended by suggestions lol.

  • Custom User Avatar

    maybe you "should" get more familiar with this website, before suggesting on changing its behaviour.

  • Default User Avatar

    This should at least be lvl 6 if not 5, its not that its super hard, but to me lvl 7 is supposed to be very easy, where this one needs a little bit of thinking.

  • Custom User Avatar

    The log appears above the test result, both those tests expect false.

  • Custom User Avatar

    can't get it. What is the difference between the following:
    [ 'n', 'w', 'n', 'w', 'n', 'w', 'n', 'w', 'n', 'w' ] must be false
    [ 'n', 'e', 'n', 'e', 'n', 'e', 'n', 'e', 'n', 'e' ] must be true
    Thank you.

  • Default User Avatar

    This one is easy to overthink. The answer is more straight forward then you might be thinking.

  • Custom User Avatar

    Your code is incorrect. You need to think better what you are doing. Maybe read the description a pair of times carefully and try to get it clear.

  • Custom User Avatar

    You're right, you have a problem :P The kata is fine

  • Custom User Avatar

    I have a problem with the Kata. I think it's not working.

  • Default User Avatar

    Such a dumb oversight on my end, sorry about that and thank you both!

  • Default User Avatar

    The kata has been solved 40,000+ times in JavaScript so it's probably not an issue with the kata.

    The particular input should indeed return False, and if you are getting a test result saying that ... should be False then it's because the test is finding something that is not False.

    So the most likely conclusion is that your code isn't doing what you think it is - in other words you need to debug a bit more.

    edit - beaten by @Chrono79 :>

  • Custom User Avatar

    Your code returns strings, not booleans, that's your problem.

    false   // boolean
    'false' // string
    

    Not a kata issue.

  • Loading more items...