Ad
  • Custom User Avatar

    The rules of this kata (and its testing) seem to be inconsistent to me. According to the description, if a known dinosaur [bitemark] is eating an item that it should not be eating or eating an unidentifiable item then the return statement should be "Something is eating xxxxx".

    From the desc: lunchTime("|||uuVuu|||") // => "Something is eating leaves."

    Yet the test expects that "vvvvvvvvvvv" should be "A velociraptor is eating something."

    Why isn't it "Something is eating something"?

    Otherwise shouldn't the example in the description be //=> "A triceratops is eating something"?

  • Custom User Avatar

    I'm finding two of the sample tests a bit confusing in how they seem to be calculating the possibilities differently.

    If ['red','blue','blue','red'] results in 2 possibilities, how is ['blue','red','blue','blue','red','blue','red'] resulting in 2 and not more possibilities?

    In the second array, I can form: "blue red blue", "red blue blue", "blue blue red", "blue red blue" ==> 4 possibilities.

    Isn't the Kata asking for the possible number of combinations of one red and two blues? Or is it that each combination has to be unique?

    Would appreciate some clarification.

  • Custom User Avatar

    Might want to include in your description that a string could include whitespace and/or special character(s).

  • Custom User Avatar

    But some readers might still easily mis-read the examples. Like I did. After submitting my code and getting errors, I even thought, "oh this must be a mistake--on the kata sensei's part." I had to go back to re-read the description/examples.

    One could make the case that altering the description slightly doesn't make that much of a difference. But, I definitely recommend updating the example.

    Instead of: "-- Normal reversal without spaces is "edocruo". "

    It should actually say: "-- Normal reversal is "edoc ruo". " (Then followed by the correct reversal example.)

  • Custom User Avatar

    The kata description could use a slight modification for improved clarity.

    "...we are going to reverse a string while maintaining spaces..." can easily be misread as keeping the spaces after each string is reversed, when what is actually meant is to keep the "positioning" (or index order) of the spaces.

    I recommend updating the description.

  • Custom User Avatar

    I was able to solve this kata, but I have to agree with previous comments below that this kata could use clearer instructions.

    The condition that would trigger "Something Bad" or "Something Good" (in the random test cases) is not well-described at all. After passing the sample tests then running into errors with the random cases, I read and re-read the instructions multiple times without clear insight available. Eventually after looking for a pattern in the failed tests, I had to take a wild guess at what I suspected/assumed the author might be asking for. #UXfail.

    Another instance of unclear writing: "If there are multiple challenges with the highest toughest amount, the first one presented will be the toughest." Does the instruction mean to say "multiple challenges with the SAME highest amount of licks"? Big difference because going by the given instruction then the outcome for "totalLicks({"dragons": 100, "evil wizards": 110, "trolls": 50})" would be "dragons" because it's the "first one presented".

    This kata shouldn't be difficult to complete, but unclear instructions will make it a frustrating one to solve for some users.

  • Custom User Avatar

    Agreed! At least a 5kyu. Uff....

  • Custom User Avatar

    Would be good to know if/when this is fixed/resolved.
    As for testing the structure vs extracting the url, the match method returns an array with the pattern as the first element, hence my solution.

  • Custom User Avatar

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

  • Custom User Avatar

    Passing the sample tests and [seemingly] the random tests for the final submission--with one exception: "TypeError: Cannot read property '0' of null". Doesn't this mean there's a random test that doesn't meet the criteria for matching the initial pattern? (I am able to replicate this same error in the console when I pass in a file name that has no extension...). Pointers would be appreciated.

  • Custom User Avatar

    Despite running my solution successfully in the console, codepen et al, still seems to be failing the test here.