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.
counter example: 4x4
cut 3 horizontal lines and get 4 strips
cut each strip 3 times to get 1x1 bits
So it is (m-1)*(n-1) = mn -m-n+1 = 16 -4-4+1 = 9 = 3x3
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cutting Paper Squares
You are viewing a single comment's thread. Return to all comments →
counter example: 4x4 cut 3 horizontal lines and get 4 strips cut each strip 3 times to get 1x1 bits So it is (m-1)*(n-1) = mn -m-n+1 = 16 -4-4+1 = 9 = 3x3