• + 0 comments

    This is an interesting problem !

    Got stuck at 3/8 test cases ?

    • Think of it as single paper which need to be divided into N*M parts.
    • As per question one cut produces 1 extra part (1 page + 1 cut = 2 part of page now )
    • We need total of N*M parts since we already have 1 paper so just need N*M -1 more cuts to get our work done.