Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    @nklein : nice kata!
    I'd like to elaborate a little bit about tree optimization:

    I was hoping all the way that it would be based on if( a and b are numbers) and it is so.

    Now after solving I am a little disappointed, because we could optimize the tree much better, e.g.: 1 + 3 * x + 4 + x * 5 = 5 + 8 * x, do you see what i mean?

    For now, I am not even sure that any solution would optimize 1 + 3 * x + 3 to 4 + 3 * x