We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I thought it like this - for a nXm size. First make (m-1) vertical cuts or (n-1) horizontal cuts then make (n-1)*m horizontal cuts or (m-1)n vertical cuts, respectively. Let me know if the explanation is not clear, will try to improve it.
Cutting Paper Squares
You are viewing a single comment's thread. Return to all comments →
I thought it like this - for a nXm size. First make (m-1) vertical cuts or (n-1) horizontal cuts then make (n-1)*m horizontal cuts or (m-1)n vertical cuts, respectively. Let me know if the explanation is not clear, will try to improve it.
My golang solution