Maximum number of groups of size 3 containing two type of items - GeeksforGeeks
Given n instance of item A and m instance of item B. Find the maximum number of groups of size 3 that can be formed using these items such that all groups contain items of both types, i.e., a group should not have either all items of type A or all items of type B.
Total number of items of type A in the formed groups must be less than or equal to n.
Total number of items of type B in the formed groups must be less than or equal to m.
Read full article from Maximum number of groups of size 3 containing two type of items - GeeksforGeeks
No comments:
Post a Comment