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 had trouble understanding what to do because the name of the matrix 'total_number_of_pages' (which is the matrix to represent the shelves itself) it not intuitive. Pages are things inside of books.
The problem has poor explanation of why we are using the array 'total_number_of_books', it can be a bit confusing since we can try to use it inside of the matrix, again, because of the name.
Matrix name should be simply 'shelves', and the array name should be something that actually points to its purpouse of being a map to how many books are in each shelf.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array in C
You are viewing a single comment's thread. Return to all comments →
I had trouble understanding what to do because the name of the matrix 'total_number_of_pages' (which is the matrix to represent the shelves itself) it not intuitive. Pages are things inside of books.
The problem has poor explanation of why we are using the array 'total_number_of_books', it can be a bit confusing since we can try to use it inside of the matrix, again, because of the name.
Matrix name should be simply 'shelves', and the array name should be something that actually points to its purpouse of being a map to how many books are in each shelf.