Ad
  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    Added some basic tests for your first 2 recs, and some advanced tests based on your third (a few different usages of units as substrings)

    Thanks! Let me know if you spot any other cases that should be tested

  • 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

    Updated those - thanks for pointing that out! I've turned the examples language-agnostic and added that space.

    (That spacing was a leftover from a previous much more complicated version of this kata)

  • Custom User Avatar

    Updated, somehow those didn't get copied over / saved. Should be there now

  • Custom User Avatar

    Thanks for the catch! Fixed 👍

  • Custom User Avatar

    Translation for TypeScript - basically a copy/paste of JS version with the types added

  • Custom User Avatar

    Because I missed those while removing console.logs before publishing 🤦‍♂️

    Fixed, thanks for the catch

  • Custom User Avatar

    Typescript translation - copied JS, added type annotations

  • Custom User Avatar

    I think by "hung" you mean "hanged" (the verb is irregular in this case).

    Normally I wouldn't bother being a pedant, but in this case "hung" means something else ;)

  • Custom User Avatar

    Suggest adding test cases for the literal strings "null", "nil", "none", etc; I see at least one solution that improperly returns that these are not alphanumeric (they are)

  • Custom User Avatar

    Description should now be more clear

    • Normalized use of LQ and UQ (instead of occasionally calling them Q1 and Q3)
    • Added an example of splitting dataset into 4 quartiles using the median
    • Clarified process description
  • Custom User Avatar

    Updated random tests, let me know if you spot any more issues with those!

  • Custom User Avatar

    The description has a section on this:

    You can obtain these quartiles by first finding the median of the dataset, then using it to divide the data into two equal halves. If the original array has an odd number of values, do not include the median in the upper or lower half. If the original array has an even number of values, just split it equally.

    Is there anything missing or unclear about this description? Perhaps an example will help?

  • Loading more items...