Ad
  • Custom User Avatar

    Working on fixing up & adding some tests to JS, have some questions for you.

    1. There is no current requirement for unique hashtags - for example, "#hey #hey" should return ["hey", "hey"], correct?
    2. Must every character in a hashtag be alphabetic? Currently it's unclear if, say, "#abc1" would count as valid
    3. If the hashtag comes immediately before punctuation ("hey, let's meet up in #london, sound good?"), does that invalidate the hashtag entirely?
  • Custom User Avatar

    The test only tests the first item of the output. Which means, you can just match the first hashtag (if there's any) and pass all the tests.

  • Custom User Avatar

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

  • Custom User Avatar
    • Ruby 3.0 should be enabled (Refer this & this for more detail)
  • Custom User Avatar

    Needs random tests

  • Custom User Avatar

    Expected: [], instead got: ["wha"]
    I'm at a loss as to how to pass this test without knowing the input...

  • Custom User Avatar

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

  • Custom User Avatar

    Expected: 0, instead got: 1
    10 Passed
    1 Failed

    I wonder, what is for '0', as it is expected by the 11th test?