Ad
  • Default User Avatar

    I did not really keep track of time, but I guess it took me 2-3 hours.

  • Default User Avatar

    Yup, just realised. Guess my solution needs more work :)
    Thanks for the reply!

  • Default User Avatar

    The formulas "C5H5)Fe(CO" and "NH3)4(OH" should cause an IllegalArgumentException to be thrown, shouldn't they?
    To me they don't qualify as valid formulas and I don't see how they should be valid given the description.
    Yet those test-cases fail if an exception is thrown.