Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
It is not written that the lines can or cannot leave the square...
What about this?
Now that the devil is out of the box, let's see what is the minimum of lines that can cover all dots.
The minimum I can do is
And here is how it can be done.
But before looking at the solution, have a try!
Required, but never shown