Closed Horned-Nonsense closed 8 months ago
Hi @Horned-Nonsense !
It's not the same. using byFreeSpaces
creates a grid inverted, when all is barriers and adds some free spaces.
@RafaelBarbosatec Same. I'll explain now. Both methods create a completely filled n * m field, which consists of barriers and free cells. We don't gain anything from the fact that we reversed the method, because:
But even if we only receive data on free cells, it is enough for us to use the first method (which uses barriers). We can implement formatting in the code segment that is directly responsible for receiving data and pass the already formatted sheet to the algorithm.
Makes sense! Thanks for explanation.
Both functions perform exactly the same thing; one is enough.