“Grasshopper – Order of operations” – Codewars
Today I completed the “Grasshopper – Order of operations” kata on Codewars!
Looking at the code and what I had to do, I at first was struggling over how to make the code output 32 without changing the number or operations used. Then, as I was thinking it through, I realized I could use parentheses to change the result. I tried the code and it worked!
Recent Comments