“Grasshopper – Order of operations” – Codewars

“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!

Memorial Day

Memorial Day

Memorial Day is a day to remember those who have died for our country and for our freedom. We want to thank all the people that have sacrificed their lives for the freedom of our nation. We should never take our freedom for granted.

Bug Zero Icon

OUR NEWSLETTER