I'm new to Javascript and Stack Overlow and therefore apologize beforehand if this is a simple problem and/or stupid question. I've tried finding the answer myself but am getting nowhere.
I have an idea to develop a web page that could provide the user a number of suggestions on which tiles to buy, depending on the users specified floor size. For example, if the user input that his/her floor is 100x100, the page should suggest that he/she could either go with 5 tiles which are 20x100, or 2 tiles which are 50x100 and so on.. The dimensions of tiles would ideally be located in a .csv so that it could be updated manually.
The problem is that I dont even know where to start, and having googled quite a bit I understand that this could be some sort of Knapsack dilemma. Does anyone have the time to point me in the right direction?
Best regards Tomas