Book pagination

  • 0

    Assume we have many words for a book, and each word has its own width and height. There is a width limitation and a height limitation for each page, and we can guarantee that the width limitation and height limitation of a page are greater than any word's width and height. Write a function to paginate the book with the given array of words. The data structure of words and the signature of the function was not given.

  • 0

    do you mean return a page number for each word stored in arraylist?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.