ATOS Code Wars

December 3, 2021

Christmas tree

 

In a Christmas tree :

yellow triangles contain function f ∈ ("+", "-" or "x"  operations)

White triangle contain numbers with the following rule


        for example :    


a - b means |a - b|



In our Christmas tree, put :

two additions "+"

two substractions "-"

two multiplications "x" 

and go from 2021 to 2022   


 

Try you solution and take a screenshot