Splitting a “true” rectangle into squares, a simple C++ algorithm
In this first episode of “Codewars explained” I’m going to show you a simple algorithm that will understand how to split a given rectangle into squares. If you didn’t know, Codewars is a huge place where coders meet altogether. Choose your favourite languages and train with some automatically proposed problems, called kata. For each kata…