you have several boxes of different sizes. now you need to find the size of 1 big box that will hold all boxes inside with a space between each box.
something like this:
the big box (in red) has a limit of size. if all boxes together cannot be placed in that big box a new big box will be taken. let say the max size is 1024x1024
but if you have only 4 small boxes the big box can be smaller then the max size so you just need to find the correct order to not lose space.
any idea?
something like this:
the big box (in red) has a limit of size. if all boxes together cannot be placed in that big box a new big box will be taken. let say the max size is 1024x1024
but if you have only 4 small boxes the big box can be smaller then the max size so you just need to find the correct order to not lose space.
any idea?