You are given N books, ith of which has Pi pages (Pi <= Pj, if i < j). You have to assign these N books to M students, such that each student has subsegment of books and the maximum number of pages assigned to a student is minimized. You have to find the maximum number of pages, a student can have in this assignment of books. the code is written in such a way that the complexity is minm .
rohitkumar1999 / read_the_pages-google_interview Goto Github PK
View Code? Open in Web Editor NEWAn easy google interview question