Ad
  • Default User Avatar

    Refactoring causes a ton of duplicate solutions being posted. Is there no way to edit a solution without creating a duplicate? There should be.

  • Custom User Avatar

    I think it boils down to the problem of evaluation of arithmetical expression, minus tokenization. We already have several kata which require evaluation of a string expression, of various difficulty (from BEDMAS to math functions to REPL).

  • Custom User Avatar

    Had a somewhat interesting challenge presented to me recently that could make a good kata:

    Given a Set of strings representing numbers and math operands, compute what the final result of a math operation would be.

    Some examples

      computeFromStrings(['5','plus','5','minus','5']) // 5
      computeFromStrings(['500','times','500']) // 250000
      computeFromStrings(paramsSet) // result of operation
    
  • Custom User Avatar
  • Custom User Avatar

    Really this shouldn't rely on random. Or at least do random within a defined range that is known to work 100% of the time.

  • Custom User Avatar

    ah, so the test case should be rewritten really?