Ad
  • Default User Avatar

    I just checked your solution. Maybe it seemed like 5 Kyu to you because you made it complicated yourself. A single string.replace with a single RegExp would've been sufficient to match and parse all the quantities and measures.

  • Custom User Avatar

    2 and 4 are not in diagonal from 1.