Ad
  • Custom User Avatar

    Python function names should be snake case, not camel case.

  • Custom User Avatar

    I think you need to explain more in the description about the task. Does the order of the digits matter? What constitutes a valid equation? Are digits supposed to be parenthesised? Are digits able to be concatenated? You should include in the desription a working example for one of the sample tests and include the specifications of the kata.

    For example, and this is based on the sample tests:

    digits = 1906
    expected 7 instead got 30
    
    I count at least the following:
    
    1+9+0*6
    1+9+0/6
    1+9-0*6
    1+9-0/6
    1+9+6*0
    1+9-6*0
    1+0*6+9
    1+0/6+9
    1-0*6+9
    1-0/6+9
    1+6*0+9
    1-6*0+9
    9+1+0*6
    9+1+0/6
    9+1-0*6
    9+1-0/6
    9+1+6*0
    9+1-6*0
    9+0*6+1
    9+0/6+1
    9-0*6+1
    9-0/6+1
    9+6*0+1
    9-6*0+1
    0*6+1+9
    0/6+1+9
    0*6+9+1
    0/6+9+1
    6*0+1+9
    6*0+9+1
    
  • Custom User Avatar

    Give it a shot without using buit in sorting functions :)

    This is not enforced; enforce it, or remove it.

  • Custom User Avatar
  • Custom User Avatar