Ad
  • Default User Avatar

    null checks are useless, dart is null-safe (a1 and a2 types can't have null value). Without null checks this solution is great

  • Default User Avatar

    If the given value is 0 then it should return 0.00
    You will only be given Natural Numbers as arguments.

    0 - is NOT a Natural Number.
    Additionally, it would be nice to see a description of a series of numbers somewhere. We can only assume that the divisor starts at 1 and increases by 3.
    My first dislike.